How can i write and use the attached matrix in MATLAB for any value of N
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
1 Kommentar
Walter Roberson
am 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.
Antworten (1)
Abdolkarim Mohammadi
am 9 Aug. 2020
Bearbeitet: Abdolkarim Mohammadi
am 9 Aug. 2020
M = (n:-1:0) + (0:n)';
or
M = (n:2*n)' - (0:n);
3 Kommentare
Abdolkarim Mohammadi
am 9 Aug. 2020
Sorry Walter. I wasn't aware of this. I agree with you that the best way of learning is trying to figure out the code.
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!