How can i write and use the attached matrix in MATLAB for any value of N
6 views (last 30 days)
Show older comments

1 Comment
Walter Roberson
on 9 Aug 2020
That is clearly a homework assignment, so if we were to answer showing you how to create the matrix, we would have to deliberately make a long program.
Answers (1)
Abdolkarim Mohammadi
on 9 Aug 2020
Edited: Abdolkarim Mohammadi
on 9 Aug 2020
M = (n:-1:0) + (0:n)';
or
M = (n:2*n)' - (0:n);
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!