title: Divide two lists of matrices where the ith matrix element in one list is divided by the ith matrix element in the second list
body: <p>I have two lists of matrices. Here is an example of their structure: </p>
  
  <pre><code>list1&lt;- list(structure(c(1, 2, 7, 1, 3, 0, 0, 0, 1, 4, 1, 3, 2, 3, 4, 
  6, 0, 0, 0, 3, 3), .Dim = c(7L, 3L), .Dimnames = list(c("lepA", 
  "lepB", "lepC", "lepD", "lepE", "lepF", "lepG"), NULL)), structure(c(1, 
  3, 7, 1, 3, 2, 3, 4, 6, 4, 1, 3, 3, 3), .Dim = c(7L, 2L), .Dimnames = list(
  c("lepA", "lepB", "lepC", "lepD", "lepE", "lepF", "lepG"), 
  NULL)), structure(c(5, 8, 7, 1, 3, 3, 3), .Dim = c(7L, 1L
  ), .Dimnames = list(c("lepA", "lepB", "lepC", "lepD", "lepE", 
  "lepF", "lepG"), NULL)))
  
  list2&lt;-list(structure(c(6, 1, 51, 13, 15, 0, 0, 0, 6, 50, 13, 15, 6, 
  5, 5, 9, 0, 0, 0, 7, 5), .Dim = c(7L, 3L), .Dimnames = list(c("lepA", 
  "lepB", "lepC", "lepD", "lepE", "lepF", "lepG"), NULL)), structure(c(6, 
  7, 51, 13, 15, 6, 5, 5, 9, 50, 13, 15, 7, 5), .Dim = c(7L, 2L
  ), .Dimnames = list(c("lepA", "lepB", "lepC", "lepD", "lepE", 
  "lepF", "lepG"), NULL)), structure(c(11, 10, 51, 13, 15, 7, 5
  ), .Dim = c(7L, 1L), .Dimnames = list(c("lepA", "lepB", "lepC", 
  "lepD", "lepE", "lepF", "lepG"), NULL)))
  </code></pre>
  
  <p>I need to divide each element of each matrix in a list with the corresponding element in the matching matrix in the second list. It's as though the two lists of matrices should be one list of arrays and the dividend is calculated for each array element. The result would be: </p>
  
  <pre><code>list&lt;- list(list1[[1]]/list2[[1]], list1[[2]]/list2[[2]], list1[[3]]/list2[[3]])
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>list1/list2 
  </code></pre>