I want to write this transfer function (0.7/s^2)*sin(0.05) in MATLAB code, but sine make it complicated. Kindly, how can I make that?
1 回表示 (過去 30 日間)
古いコメントを表示
Can I write it as in this code?
%code
s=tf('s')
g=(0.7/s^2)*sin(0.05)
Thanks
0 件のコメント
採用された回答
Star Strider
2022 年 1 月 22 日
Since the sin call creates a constant and is not itself a function of ‘s’, evaluate it first and then just multiply it as with any other constant —
s=tf('s');
m = sin(0.05)
g=(0.7/s^2)*m
figure
bode(g)
grid
.
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!