Matlab question on addition

1 view (last 30 days)
Jignesh Pawar
Jignesh Pawar on 23 Apr 2021
Commented: Rik on 23 Apr 2021
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 Comment
Rik
Rik on 23 Apr 2021
Have you tried anything? This is your homework.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!