how to write delta function

33 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get 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