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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
taleem mat
am 22 Jan. 2022
Kommentiert: Star Strider
am 22 Jan. 2022
Can I write it as in this code?
%code
s=tf('s')
g=(0.7/s^2)*sin(0.05)
Thanks
0 Kommentare
Akzeptierte Antwort
Star Strider
am 22 Jan. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!