Matlab question on addition

Please solve the problem Create a 3x3 matrix called A.
■ Fill it with random integers.
■ For each column, use a for loop to add the numbers in that column
■ For each row, use a for loop to add the numbers in that row.
■ For each diagonal, use a loop to add the number in that diagonal.

1 件のコメント

Rik
Rik 2021 年 4 月 23 日
Have you tried anything? This is your homework.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

質問済み:

2021 年 4 月 23 日

コメント済み:

Rik
2021 年 4 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by