想在外部每次循环中都调用一次simulink模块,我该如何设置simulink里的输入(每次循环输入进simulink的输入都是不一样的值)

 採用された回答

nezwah
nezwah 2023 年 5 月 16 日

0 投票

举一个非常简单的例子,slx文件名为Exam,测试程序如下:
clear;clc
for a = 1:5
    y = sim('Exam');
    y_time(:,a) = y.simout.time;
    y_data(:,a) = y.simout.data;
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange启动和关闭 についてさらに検索

質問済み:

2023 年 5 月 16 日

回答済み:

2023 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!