run m.file Same time with simulink
古いコメントを表示
Hi.I created a m.file that define a variable resistor.I want to use this variable resistor in a simulink file in simpower system.my m.file is : if(current>160) R=log(current) else R=0 end 'current' is a signal in my simulink file.I need to run this m.file in Same time with my simulink.thus R can be a variable resistor in my simulink file.how can i do it?please help me.
回答 (1 件)
Mischa Kim
2014 年 2 月 2 日
0 投票
2 件のコメント
behzad
2014 年 2 月 3 日
Mischa Kim
2014 年 2 月 3 日
編集済み: Mischa Kim
2014 年 2 月 3 日
I see. In this case you might want to use an embedded MATLAB function. In the Simulink library browser go to > Simulink > User-Defined Functions and select a MATLAB function block. Embedded MATLAB function are, as the name implies, automatically and directly integrated in(to) a Simulink model.
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!