sparse discrete fourier transform

20 ビュー (過去 30 日間)
tafteh
tafteh 2013 年 6 月 4 日
編集済み: tafteh 2017 年 2 月 2 日
Hi all, I am trying to use sparse discrete fourier transform on a time series in matlab. I could not find any sample code written in matlab in that regard. Would you please help me resolving that?!
I came across this website but the code in there is written in c.
Thanks,

採用された回答

Matt J
Matt J 2013 年 6 月 4 日
編集済み: Matt J 2013 年 6 月 4 日
How about something like this,
K=length(yourSignal);
%Reduced DFT matrix
M=exp( j*2*pi/K * bsxfun(@times,(0:K-1).', find(yourSignal).' - 1) );
result=M*nonzeros(yourSignal),
  2 件のコメント
tafteh
tafteh 2013 年 6 月 4 日
編集済み: tafteh 2017 年 2 月 2 日
Thanks Matt, My question is that whether the sparse algorithm would be a different technique in power spectrum estimation? or it is just faster way of estimating using DFT method?
Matt J
Matt J 2013 年 6 月 4 日
編集済み: Matt J 2013 年 6 月 4 日
What I presented would be a faster DFT for sparse input signals. If that's not the goal, you should clarify what is.

サインインしてコメントする。

その他の回答 (1 件)

dongyang gao
dongyang gao 2016 年 12 月 12 日
I also want to this code maded in matlab, could you help me ?

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by