how to write delta function

26 ビュー (過去 30 日間)
shiv gaur
shiv gaur 2022 年 1 月 24 日
コメント済み: shiv gaur 2022 年 1 月 25 日
how to write delta function in matlab
Write delta function in matlab
Y=f(x)
For a=1:10
m=x*exp(-x^2)+a^2
fm=integrate(f,0,a)
b=2;
y=summation (-inf ,inf) fm*delta(b-p*x)
how to write
end
End

採用された回答

David Hill
David Hill 2022 年 1 月 24 日
Or use dirac() built-in function
function x=delta(x)
if x==0
x=inf;
else
x=0;
end
  1 件のコメント
shiv gaur
shiv gaur 2022 年 1 月 25 日
pl you are req to solve the problem

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by