how to write delta function

조회 수: 33 (최근 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 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