LPFに通した信号の逆フーリエ変換について
Afficher commentaires plus anciens
Trace_1をフーリエ変換した後にLPFにかけるプログラムを作成しました。LPFに通した信号を逆フーリエ変換する方法 (横軸:時間、縦軸:電圧のグラフを書く方法) を教えて頂けませんか? ご回答をお待ちしております。
t = Trace_1(:,1);
x = Trace_1(:,2);
L1 = t(end)-t(1);
fs = 1/(t(2)-t(1));%サンプリングレート
L2 = fs*L1;%信号の総サンプル数
fc = 1*10^6;%LPFの値
y = fft(x);
P2 = abs(y/L2);
P1 = P2(1:L2/2+1);
P1(2:end-1) = 2*P1(2:end-1);
j = 1;
for f=0:(fs/L2):(fs/2)
e1(j)=f;
if f <= fc
P1(j) = P1(j);
end
if f > fc
P1(j) = 0*P1(j);
end
j=j+1;
end
P1(2:end-1) = 0.5*P1(2:end-1);
P2 = P1(1:L2/2+1);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur フーリエ解析とフィルター処理 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!