Help with symbolic transfer function?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Robert Flores
le 6 Nov 2018
Réponse apportée : Walter Roberson
le 6 Nov 2018
Hello,
I am trying to have an output that gives me a transfer function, given certain variables. Matlab is telling me the following: Error using tf (line 296) The values of the "Numerator" and "Denominator" properties must be row vectors or cell arrays of row vectors, where each vector is nonempty and containing numeric data. Type "help tf.num" or "help tf.den" for more information.
Is there anyway around assigning data to the variables, and still use the transfer function? Below is a copy of my code.
-Robert
CODE:
syms K1 K2 K3 I s
theta = (K1*K2)/I;
num = {theta};
den = {1 theta*K3 theta};
Gs = tf(num,den);
0 commentaires
Réponse acceptée
Walter Roberson
le 6 Nov 2018
"Is there anyway around assigning data to the variables, and still use the transfer function?"
NO. tf() will never support symbolic parameters.
See https://www.mathworks.com/matlabcentral/answers/305339-how-to-create-a-transfer-function-with-gain-k#answer_236890 for a semi-detailed discussion of what is available.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!