what function can be used to divide matrixes with n length

1 回表示 (過去 30 日間)
Tino
Tino 2019 年 4 月 25 日
コメント済み: Star Strider 2019 年 4 月 29 日
Hi,
Please I need a code that will do this computation below
Thanks in advance
Please given x = 1 2 3 4 5...... x.length
and y = 1 2 3 4 5...... y.length
Please how do I get the code to get M
assuming M = 1/1 2/2 3/3 4/4 5/5........

採用された回答

Star Strider
Star Strider 2019 年 4 月 25 日
The must both be the same length, and ideally the same row and column sizes.
M = x ./ y
Note the ‘./’ denoting element-wise division.
  2 件のコメント
Tino
Tino 2019 年 4 月 29 日
Thanks Star Strider
Star Strider
Star Strider 2019 年 4 月 29 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Events についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by