Info

This question is closed. Reopen it to edit or answer.

Write a function that creates a matrix m x n in whichthe value of each element of the matrix is the sum of the indices for that cell. So, for example, the value of A(1,1) is 2, A(1,2) is 3, and A(3,6)is 9. Inputs m&n, output matrix A. Write the code

1 view (last 30 days)
A(1,1)=2 A(1,2)=3 A(3,6)=9

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!