if condition for Matrix
Ältere Kommentare anzeigen
I have Matrix for example
M = ones(10,10)
how I make ( if condition) s.t
M(i-tau,j)=0 if i-tau <0,
where i =1:10 and j =1:10
Thanks
1 Kommentar
Torsten
am 31 Mai 2021
M(i-tau,j) does not exist if (i-tau)<0. So you can't set it to a specified value ( 0 in this case ).
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!