Error in control systems plotting tools
Afficher commentaires plus anciens
Hi all,
I was playing around with some routine coding and have run into an odd error. None of my control systems toolbox plotting tools seem to work. I get the following error:
>> g = tf(1, [1 5])
Transfer function:
1
-----
s + 5
>> bode(g)
??? Error using ==> lti.bode at 95
Illegal right hand side in assignment. Too many elements.
I followed the trace a little bit (same error from bodeplot and I didn't know enough to mess with ltiplot) but didn't get anywhere.
I don't believe I screwed with any settings but I suppose anything is possible. I restarted MATLAB and ran into the same thing again. Going to let it sit overnight and hope the magic computer juices make it work in the morning, but meanwhile I'd really appreciate any help.
Thanks! Reuben
2 commentaires
Star Strider
le 18 Juil 2012
Modifié(e) : Star Strider
le 18 Juil 2012
Your code worked perfectly for me, Bode plot and all (2012a).
I hope that's at least a consolation.
If rebooting MATLAB doesn't solve your problem, I suggest you contact TMW Tech Support.
Craig
le 19 Juil 2012
Hi Reuben,
I am unable to reproduce this issue. If you are still encountering this issue, I would recommend contacting tech support. It sounds like an installation issue.
If you perform the following
>> dbstop if all error
>> bode(g)
this will help determine the actual line of code erroring. Line 95 in lti.bode is part of a try/catch.
Réponses (0)
Catégories
En savoir plus sur Get Started with Control System Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!