FFT of 10 rows of data points
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a dataset which forms a matrix of [1000*10]. I want to perform fft on this dataset such that it be done row-wise. Different rows of the matrix correspond to data originated from different processes. So, the result of fft must also be a matrix of same dimensions. What is the syntax for performing this fft so that I can take out first row of the result and do further computation and similarly for other rows.
I came across this, y= fft(X,[],dim) for doing row wise fft but don't understand what is the meaning of dim here. Is it the dimension, as in 10 in my case? What square brackets mean?
My code:
w = 512; %window size
yf = fft(Data(x:(x+w)), [], 10);
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 6월 10일
dim refers to which index position. so for 1000x10 data, data(I,J) the I corresponds to the position in the first dimension, dim 1, the J corresponds to the position in the second dimension, dim 2. When dimension 1 (row number) changes and the rest stays the same for any given vector, then the operation is "along" dimension 1. When dimension 2 (column number) changes and the rest stays the same for any given vector, then the operation is "along" dimension 2. So to operate "along" rows, as in a whole series of fft(data(I,:)) then that is "along" dimension 2, so fft(data,2)
댓글 수: 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!