Error using TF (Transfer Function): Too many output arguments.

5 visualizaciones (últimos 30 días)
Michael Peterson
Michael Peterson el 31 de En. de 2018
Respondida: Star Strider el 31 de En. de 2018
I am trying to run some code for Transfer Functions and keep getting an error. The code is for a class and was downloaded from the class page. Everyone else has no issues running the code, so it seems to be an issue strictly related to my installation of Matlab/My PC. I am running Matlab R2015a 32 bit. The only toolboxes installed are MATLAB 2015a, Simulink, Symbolic Math, and the Control Systems Engineering toolbox.
Code is as follows:
%%go over crating transfer functions and getting data from them:
%%another way:
s=tf('s') % let matlab know that s will be the laplace variable s
G=(s+1)/(2*s+3);
The output and error is as follows:
s =
s
Continuous-time transfer function.
Error using + (line 63)
Too many output arguments.
  2 comentarios
Star Strider
Star Strider el 31 de En. de 2018
Is that code part of a larger script, or are you only running those two lines?
Michael Peterson
Michael Peterson el 31 de En. de 2018
Yes, it is tthe first couple lines of a much larger code. Regardless, the code does not allow any sort of mathematical operation (+,-,*,/) on the 's' tf variable.

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 31 de En. de 2018
‘Regardless, the code does not allow any sort of mathematical operation (+,-,*,/) on the 's' tf variable.’
True.
See the documentation on Model Interconnection (link) if you want to connect models in series, parallel, or other configurations.

Categorías

Más información sobre Control System Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by