property of Dirac delta function in matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
hey guys!
hello
i want to plot the property of Dirac delta function in matlab;
my uncompleted code:
clc
clear all
t=0:0.01:2*pi;
x1=2*sin(t);
subplot(311)
plot(t,x1);grid
x = -1:0.1:1;
y = dirac(x);
idx = y == Inf;
y(idx) = 1;
subplot(312)
stem(x,y);grid
final=x1.*y;
subplot(312)
plot(t,final);grid
result
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231318/image.jpeg)
my final answer:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231319/image.jpeg)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!