"Too many input arguments" for basic operations on transfer functions
Afficher commentaires plus anciens
Hello,
I have a problem using the Control Model Toolbox that I never had before using Matlab R2019B.
Whenever I try to make some operations on transfer functions, I hace the same "Too many input arguments" problem.
For example :
>> s = tf('s');
>> s
s =
s
Continuous-time transfer function.
>> 2*s
Error using * (line 80)
Too many input arguments.
>> s+1
Error using + (line 63)
Too many input arguments.
>> s^2
ans =
s^2
Continuous-time transfer function.
>> tf(1,[1,1]) * tf(1,[1,2,1])
Error using * (line 80)
Too many input arguments.
As anyone ever met this problem ? My research hasn't led to any result.
Thanks
Réponse acceptée
Plus de réponses (1)
Steven Lord
le 9 Juil 2020
Make sure you haven't written your own mtimes.m or times.m file that's taking precedence over the built-in mtimes or times function. [I believe the mtimes method for tf may call times when the inputs are scalar.] What do you see when you run these commands?
which -all mtimes
which -all times
3 commentaires
madhan ravi
le 9 Juil 2020
Modifié(e) : madhan ravi
le 9 Juil 2020
Also for plus and tf
Léo Bellorget
le 9 Juil 2020
Modifié(e) : Léo Bellorget
le 9 Juil 2020
Léo Bellorget
le 9 Juil 2020
Modifié(e) : Léo Bellorget
le 9 Juil 2020
Catégories
En savoir plus sur Time Series Objects 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!