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
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!