필터 지우기
필터 지우기

Export transfer function model to workspace from Simulink without linmod

조회 수: 5 (최근 30일)
Lazaros Moysis
Lazaros Moysis 2013년 10월 14일
댓글: Raja Singh R 2020년 8월 13일
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
Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 18일
Lazaros commented
Isn't there anyone who can help me with this? Thanks again in advance!

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
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
haryana thomas 2018년 8월 21일
you should type this command in the matlab command line.
plant = linearize('name of simulink model')
tf(plant)
Raja Singh R
Raja Singh R 2020년 8월 13일
Thomas, It is showing empty transfer function

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by