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
.
更多回答(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!