>> R1=1; L=10e-3; C1=10e-6; R2=10; A=[-R1/L -1/L;1/C1 -1/(R2*C1)]; B=[1/L;0]; C=[0 1]; D=[0]; step(A,B,C,D),grid >> bode(A,B,C,D),grid ??? Error using ==> lti.bode at 95 Plots must be of the same type and size to be superimposed. Error in ==> bode a
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
what is the problem with bode comand
1 Kommentar
Azzi Abdelmalek
am 13 Sep. 2013
Please, format your question http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Akzeptierte Antwort
Carla
am 13 Sep. 2013
I do not get the error you see. Do you have a hold in between the step command and the bode command that you did not show here? It looks like you are trying to write the bode plot on the same axes as the step plot. Try this:
figure
step(A,B,C,D),grid
figure
bode(A,B,C,D),grid
This will plot the responses in separate figure windows.
Note also that this is a legacy syntax for step and bode; these commands are more powerful and flexible if you give them dynamic system input arguments:
sys = ss(A,B,C,D)
bode(sys)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Control System Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!