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.

추가 답변 (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