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!