if condition for Matrix
古いコメントを表示
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 件のコメント
Torsten
2021 年 5 月 31 日
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 ).
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!