what function can be used to divide matrixes with n length

1 次查看(过去 30 天)
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Time Series Events 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by