Effacer les filtres
Effacer les filtres

Use symbolic math in MATLAB and the ‘solve’ command to get the transfer function

46 vues (au cours des 30 derniers jours)
Zain Adtani
Zain Adtani le 4 Mai 2020
This is a example problem but when I run it it gives an error
>> syms s F
>> H=solve('(2.45*s^2+0.98*s+9.8)*Th+s^2*Z=0',
... '(12*s^2+720*s+1200)*Z+3.5*s^2*Th=F','Z,Th');
>> h=collect(H.Th,s);
>> h=collect(h,F);
>> pretty(h)
  1 commentaire
Walter Roberson
Walter Roberson le 7 Mai 2020
Which release are you using? Passing character vectors to solve() has not been permitted since R2018b or so.

Connectez-vous pour commenter.

Réponses (1)

Sai Sri Pathuri
Sai Sri Pathuri le 7 Mai 2020
You may refer the following documentation to get transfer function of Theta (using Symbolic Math and solve command)

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!

Translated by