How can i zeroing elements in a matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Áron Laczkovits
am 25 Sep. 2012
Kommentiert: DGM
am 2 Nov. 2023
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 Kommentare
Akzeptierte Antwort
Wayne King
am 25 Sep. 2012
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 Kommentare
DGM
am 2 Nov. 2023
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Fourier Analysis and Filtering 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!