Modify this code to compute the mean of the row vectors. Although there are only two rows still use a loop to add up A(1, :) + A(:, 2).

조회 수: 1 (최근 30일)

답변 (1개)

madhan ravi
madhan ravi 2021년 2월 1일
help mean
help sum
  댓글 수: 2
Space Boy
Space Boy 2021년 2월 1일
I got that part and switched the first part to rows:
zeros(1,size(A,1));%
how do I convert the for loop to add the rows not the columnS?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by