x(t) = 2*u((-t/4)+2), |t|<=10
4 ビュー (過去 30 日間)
古いコメントを表示
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code
0 件のコメント
採用された回答
Ameer Hamza
2020 年 11 月 5 日
編集済み: Ameer Hamza
2020 年 11 月 5 日
I guess u is the unit-step function. You can try this if you have symbolic toolbox
syms t
x = 2*heaviside(-t/4+2);
fplot(x, [-10 10]);
Without symbolic toolbox
u = @(x) 1*(x>=0);
t = -10:0.01:10;
x = 2*u(-t/4+2);
plot(t, x)
その他の回答 (1 件)
Ibrahem Ahmed
2021 年 3 月 16 日
u = @(x) 1*(x>=0); t = -10:0.01:10; x = 2*u(-t/4+2); plot(t, x)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!