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!
