how to plot function with a sine input in Matlab (not in simulink)
이전 댓글 표시
we just type command 'step(function)' to plot a function with input step but How to plot a function that use sine as an input in Matlab.
채택된 답변
추가 답변 (1개)
Geraint Bevan
2019년 7월 16일
3 개 추천
Use the lsim function to apply an arbitrary input to a system.
G = tf(1,[1,1])
t = [0:0.01:10]
u = sin(t)
[y,t] = lsim(G,u,t)
plot(t,u,t,y)
legend('Input','Output')
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!