MATLAB Answers

Export transfer function model to workspace from Simulink without linmod

68 views (last 30 days)
Lazaros  Moysis
Lazaros Moysis on 14 Oct 2013
Commented: Raja Singh R on 13 Aug 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
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 Comment
Azzi Abdelmalek
Azzi Abdelmalek on 18 Oct 2013
Lazaros commented
Isn't there anyone who can help me with this? Thanks again in advance!

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 14 Oct 2013
Edited: Azzi Abdelmalek on 14 Oct 2013
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');

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!