how to get defined simulation parameters for a new simulink window....

6 ビュー (過去 30 日間)
Venkatapathi
Venkatapathi 2012 年 8 月 19 日
Hi
i have a simulink model which runs on discrete solver with fixed step. whenever i want to test a small portion of the model, i will open a new window for testing. but the problem is, the new window is taking default simulation parameters like.. variable step and 'ode3' solver. and it will difficult for me to change the parameters every time...
i would like to know is there any way to get the defined simulation parameters for the new window....like main window....
Thanks for spending your valuable time..
venkat

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 8 月 19 日
編集済み: Azzi Abdelmalek 2012 年 8 月 19 日
use set_param, for example
set_param('YourModelName', 'Solver', 'ode45', 'StopTime', '100','FixedStep','0.1')
%you create a file with all configuration you need. or save an empty model with your desired configurations, use it to test your sub model, then close it without saving
  1 件のコメント
Venkatapathi
Venkatapathi 2012 年 8 月 19 日
Hi Mr.azzi....
Thanks for your answer...

サインインしてコメントする。

その他の回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 8 月 20 日
An easier way might be to maintain a Configuration Set that you can attach to any number of models. Configuration sets are objects that can be created in the MATLAB workspace.

カテゴリ

Help Center および File ExchangeManual Performance Optimization についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by