what function can be used to divide matrixes with n length

1 Ansicht (letzte 30 Tage)
Tino
Tino am 25 Apr. 2019
Kommentiert: Star Strider am 29 Apr. 2019
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........

Akzeptierte Antwort

Star Strider
Star Strider am 25 Apr. 2019
The must both be the same length, and ideally the same row and column sizes.
M = x ./ y
Note the ‘./’ denoting element-wise division.

Weitere Antworten (0)

Kategorien

Mehr zu Time Series Events finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by