I've tried using MATLAB R2023b to generate bode plots and calculate DC gains of transfer function but I keep on receiving an error message: 'Wrong number of input arguments'
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
syms s
b = (s + 1)/(s + 100)
b =
(s + 1)/(s + 100)
>> k = dcgain(b)
Error using dcgain
Wrong number of input arguments.
>> bode(b)
Error using bode
Not enough input arguments.
0 Kommentare
Antworten (1)
Star Strider
am 19 Okt. 2023
Try this instead —
s = tf('s');
b = (s + 1)/(s + 100)
k = dcgain(b)
bode(b)
grid
.
2 Kommentare
Star Strider
am 19 Okt. 2023
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
