Effacer les filtres
Effacer les filtres

Export transfer function model to workspace from Simulink without linmod

5 vues (au cours des 30 derniers jours)
Lazaros Moysis
Lazaros Moysis le 14 Oct 2013
Commenté : Raja Singh R le 13 Août 2020
I want to export the trasfer function of a simple simulink program to the workspace. I know it can be done simply by using the commands
[a,b,c,d]=linmod('model')
sys=ss(a,b,c,d);
tf(sys)
Is there any way to avoid the linmod command? The reason I need to do this is to present this method for people who are not familiar with state-sspace models.
  1 commentaire
Azzi Abdelmalek
Azzi Abdelmalek le 18 Oct 2013
Lazaros commented
Isn't there anyone who can help me with this? Thanks again in advance!

Connectez-vous pour commenter.

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 14 Oct 2013
Modifié(e) : Azzi Abdelmalek le 14 Oct 2013
Edit
Your model name is transfer, and you have two transfer function named Transfer Fcn and Transfer Fcn1
To get the parameters of Transfer Fcn block
num=get_param('transfer/Transfer Fcn','Numerator');
den=get_param('transfer/Transfer Fcn','Denominator');
model=tf(str2num(num),str2num(den))
  8 commentaires
haryana thomas
haryana thomas le 21 Août 2018
you should type this command in the matlab command line.
plant = linearize('name of simulink model')
tf(plant)
Raja Singh R
Raja Singh R le 13 Août 2020
Thomas, It is showing empty transfer function

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by