property of Dirac delta function in matlab
3 ビュー (過去 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
my final answer:
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!