how to write delta function

7 vues (au cours des 30 derniers jours)
shiv gaur
shiv gaur le 24 Jan 2022
Commenté : shiv gaur le 25 Jan 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

Réponse acceptée

David Hill
David Hill le 24 Jan 2022
Or use dirac() built-in function
function x=delta(x)
if x==0
x=inf;
else
x=0;
end
  1 commentaire
shiv gaur
shiv gaur le 25 Jan 2022
pl you are req to solve the problem

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by