Setting Simulink Time Step from an external File
古いコメントを表示
Hi guys
Is there a way to set the simulation time step in Simulink to match the time signals (variable sampling) present in an external file. So if this external file is loaded into the Matlab workspace and called 'Time', I can set the Simultaion start and stop time (under configuration parameters) to be Time(1) and Time(end), but how can i simulate my model at the exact same instances of time as present in the file 'Time'.
Thanks Saurabh
回答 (1 件)
Azzi Abdelmalek
2013 年 6 月 4 日
編集済み: Azzi Abdelmalek
2013 年 6 月 4 日
set_param('untitled','Start Time','100')
set_param('untitled','Stop Time','1000')
2 件のコメント
Saurabh Maithani
2013 年 6 月 5 日
編集済み: Saurabh Maithani
2013 年 6 月 5 日
Azzi Abdelmalek
2013 年 6 月 5 日
sim('your_model',[0.1 0.2 0.6 0.7 0.8 1.5 1.6])
カテゴリ
ヘルプ センター および File Exchange で Prepare Model Inputs and Outputs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!