Simulink input output from m file
古いコメントを表示
Given an input a=[1 2 3] in an m file.
how do I run simulink WITH THE INPUT? Please dont suggest using workspace.
the obvious way to run simulink is sim('model',..) but how do I insert my input? In fact, the depreciated method is exactly what I need..
[T,X,Y] =sim('model',Timespan, Options, UT)
where UT is a matrix of time and input, T, X,Y is output. This is just like a matlab function. If it is depreciated what is the equivalent way to do it? The new sim command has syntax
SimOut = sim('model', Parameters)
is there any way to place my input into parameters?
Thanks!
採用された回答
その他の回答 (1 件)
James
2011 年 12 月 30 日
3 投票
1 件のコメント
Long Pham Van
2019 年 3 月 27 日
Thank you very much!!! It's very usefull for me.
カテゴリ
ヘルプ センター および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!