Bode diagram : Warning: Error occurred while evaluating listener callback.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hidd_1
am 9 Mai 2023
Kommentiert: Star Strider
am 9 Mai 2023
I wrote the following code, I am gettign this error:
Warning: Error occurred while evaluating listener callback.
Here is the code:
w_0 = 100
D = 10
K = 26.5;
s = tf('s');
G = w_0/(s^2 + 2*D*w_0*s + w_0^2)
bode(G)
%pole(G)
%pzmap(G)
grid on
hold on
margin(K*G);
legend('Open-loop','Open-loop with gain K')
hold off
I would be greatful for any feedback!
0 Kommentare
Akzeptierte Antwort
Star Strider
am 9 Mai 2023
Your code runs without error in R2023a.
Perhaps an upgrade is in order —
w_0 = 100;
D = 10;
K = 26.5;
s = tf('s');
G = w_0/(s^2 + 2*D*w_0*s + w_0^2)
bode(G)
%pole(G)
%pzmap(G)
grid on
hold on
margin(K*G);
legend('Open-loop','Open-loop with gain K')
hold off
.
2 Kommentare
Star Strider
am 9 Mai 2023
Be sure all the updates to R2020a are installed, since they may have fixed that particular problem.
If there are still problems after that, it may be necessary to upgrade to a more recent version/release.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filter Analysis 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!