フィルターのクリア

Data Inspector Run Names

2 ビュー (過去 30 日間)
FG
FG 2021 年 2 月 27 日
コメント済み: FG 2021 年 3 月 17 日
Hi all.. I have a code running a model for a certain repeat. Simulation outputs several mat files according to the change of variables. I want the simulation name the data inspector RUNs AUTOMATICALLY according to the change of the variables. For example; first simulation for x=1 y=1, second x=1 y=2 third x=1 y=3.. on and on
I want the data inspector runs to be named as x=1 y=1, x=1 yy=2, x=1 y=3... Is there a way for that ? Thnx..

採用された回答

Aghamarsh Varanasi
Aghamarsh Varanasi 2021 年 3 月 11 日
Hi,
You can programatically save the contents of the Simulink Data Inspector using the save API provided by Simulink. You can pass the file name as string with '.mldatx' extension to save the data in the Simulink Data Inspector.
Example:
% let x=1 , y=2
x = 1;
y = 2;
% create the file name as required
filename = strcat('x=',num2str(x),' y=',num2str(y),'.mldatx');
% save data in sdi
Simulink.sdi.save(filename)
Hope this helps
  1 件のコメント
FG
FG 2021 年 3 月 17 日
I thank you..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by