フィルターのクリア

integral of function definite in piece with multiple variable

2 ビュー (過去 30 日間)
Simo
Simo 2020 年 5 月 21 日
回答済み: Walter Roberson 2020 年 5 月 21 日
I need to calculate the fourier transform of a function
can you show me how to run this code and also how to run using syms
thank you
clear
r0=@(t) (t<0);
r1=@(t) (t>=0 & t<1);
r2=@(t) (t>=1);
r3=@(t) (t>=1 & t<2);
r4=@(t) (t>=2);
p=@(t) (r0(t).*0+r1(t).*1+r2(t).*0);
P=@(w)(integral(p.*exp(complex(0,-w*t))/sqrt(2*pi),-inf,+inf));

採用された回答

Walter Roberson
Walter Roberson 2020 年 5 月 21 日
P = @(w) integral( @(t) p(t) .* exp(complex(0,-w*t))/sqrt(2*pi),-inf,+inf);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by