Export transfer function model to workspace from Simulink without linmod
5 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150681/image.bmp)
1 个评论
Azzi Abdelmalek
2013-10-18
Lazaros commented
Isn't there anyone who can help me with this? Thanks again in advance!
回答(1 个)
Azzi Abdelmalek
2013-10-14
编辑:Azzi Abdelmalek
2013-10-14
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 个评论
haryana thomas
2018-8-21
you should type this command in the matlab command line.
plant = linearize('name of simulink model')
tf(plant)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!