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일

0 개 추천

Or use dirac() built-in function
function x=delta(x)
if x==0
x=inf;
else
x=0;
end

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2022년 1월 24일

댓글:

2022년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by