unit step function to MATLAB
古いコメントを表示
i need to plot x(t) and y(t) in matlab but i need to convert them to codes first 

採用された回答
その他の回答 (1 件)
Abdelrhman Abdelfatah
2022 年 5 月 13 日
編集済み: Abdelrhman Abdelfatah
2022 年 5 月 13 日
0 投票
You need to use Symbolic Math Toolbox
syms x(t) y(t)
x(t) = piecewise((t>-0.5)&(t<0.5),2.5,0)
y(t) = piecewise((t>-3)&(t<0),-2,(t>0)&(t<3),1.5,0)
subplot(2,1,1)
fplot(x)
subplot(2,1,2)
fplot(y)
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
