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

1 回表示 (過去 30 日間)
Adriana Amrhein
Adriana Amrhein 2021 年 10 月 20 日
コメント済み: Adriana Amrhein 2021 年 10 月 20 日
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 件のコメント
Matt J
Matt J 2021 年 10 月 20 日
Isn't that just the same as dividing element by element A(i,j)/B(i,j) ?

サインインしてコメントする。

採用された回答

Matt J
Matt J 2021 年 10 月 20 日
C=A./B;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by