I have two arrays that I want to divide a specific way

1 view (last 30 days)
I have two cell arrays (A and B), both arrays are 100x31. I want to divide the two arrays in a specfic way. I want to divide row 1 in array A by row 1 in array B, and so on. I want to do that over all rows creating a new array that is also 100x31.
I tried to just divide the two arrays like so:
and this created a new vector with lengths 100x101.
  1 Comment
Matt J
Matt J on 20 Oct 2021
Isn't that just the same as dividing element by element A(i,j)/B(i,j) ?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!