how to write delta function

35 visualizzazioni (ultimi 30 giorni)
shiv gaur
shiv gaur il 24 Gen 2022
Commentato: shiv gaur il 25 Gen 2022
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

Risposta accettata

David Hill
David Hill il 24 Gen 2022
Or use dirac() built-in function
function x=delta(x)
if x==0
x=inf;
else
x=0;
end

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by