how to set anti diagonal part of matrix with zero value elements ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ajeet verma
am 8 Mär. 2017
Kommentiert: Walter Roberson
am 9 Mär. 2017
i know that how to set diagonal part of matrix to zero, for that we have a code m=256; n=256; a=ones(m,n); u=triu(a); imshow(u);
but in case of anti diagonal what will be code?
0 Kommentare
Akzeptierte Antwort
Nicolai Sanders
am 8 Mär. 2017
I think this might do what you need.
m=256; n=256; a=ones(m,n); u=flip(triu(a)); imshow(u);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!