Error in control systems plotting tools

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 Commenti

Star Strider
Star Strider il 18 Lug 2012
Modificato: Star Strider il 18 Lug 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.
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.

Accedi per commentare.

Risposte (0)

Richiesto:

il 18 Lug 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by