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!