How can i zeroing elements in a matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
Well, My task is the following: i have a wav file, that i need to fft, then i load it to a matrix. I want to zeroing the first 10000 elements of the matrix. How can i do that?
0 件のコメント
採用された回答
Wayne King
2012 年 9 月 25 日
I'll assume you have a 1-D vector, if that vector is X, then just
X(1:1e4) = 0;
If this is not what you mean, please be more specific.
2 件のコメント
DGM
2023 年 11 月 2 日
Doesn't matter whether it's square or not. Just address all elements of the row.
A = randi(9,4,4)
A(2,:) = 0 % row 2, all columns
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!