필터 지우기
필터 지우기

Computing the rows of the matrix

조회 수: 1 (최근 30일)
Kiruthiga Sekar
Kiruthiga Sekar 2019년 2월 13일
댓글: Kiruthiga Sekar 2019년 2월 13일
Hi,
I have a 3x100 matrix. And i have values in the first two rows of matrix and i need to compute the ratio of the first two rows and store it it the third row of matrix.
for example,
171.70 160.05 174.08 163.12
132.95 142.27 126.93 147.89
0 0 0 0
how do i do that?
Thanks in advance

채택된 답변

madhan ravi
madhan ravi 2019년 2월 13일
Interpreting ratio as division:
a(3,:)=a(1,:)./a(2,:) % where a is your matrix

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by