フィルターのクリア

FFT of 10 rows of data points

1 回表示 (過去 30 日間)
Aqua22
Aqua22 2015 年 6 月 10 日
回答済み: Walter Roberson 2015 年 6 月 10 日
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);

回答 (1 件)

Walter Roberson
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)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by