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

1 visualización (últimos 30 días)
Adriana Amrhein
Adriana Amrhein el 20 de Oct. de 2021
Comentada: Adriana Amrhein el 20 de Oct. de 2021
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:
C=A/B
and this created a new vector with lengths 100x101.
Thanks!
  1 comentario
Matt J
Matt J el 20 de Oct. de 2021
Isn't that just the same as dividing element by element A(i,j)/B(i,j) ?

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 20 de Oct. de 2021
C=A./B;

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by