How to add script to testing environment

1 回表示 (過去 30 日間)
Anshul Kaushik
Anshul Kaushik 2023 年 6 月 11 日
コメント済み: Anshul Kaushik 2023 年 6 月 15 日
Hi , I need some help with simulink test, I have a simulink model and using the results from Simulink model I will be running a Matlab script and perform baseline test based on the result. I need to know Is it possible to call a matlab script/ function in simulink test?

回答 (1 件)

Kautuk Raj
Kautuk Raj 2023 年 6 月 11 日
Yes, it is possible to call a MATLAB script or function in Simulink Test. You can use the MATLAB Function block or the MATLAB System block to call a MATLAB function within a Simulink model.
Refer to this piece of documentation for more details.
  1 件のコメント
Anshul Kaushik
Anshul Kaushik 2023 年 6 月 15 日
Cant it be done using model callbacks? after simulation stops, what callback can be used to call the script and then answer at workspace?

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

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by