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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by