Importing variables into Simulink from Matlab

148 次查看(过去 30 天)
Hi all I am now trying to compile my Simulink model and having trouble linking my workspace variables.

采纳的回答

Benjamin Thompson
In the Model Explorer, go to the Model Workspace parameters and set the Data source to "MATLAB File". Select your M file to use in the file name edit box. If you have further problems be sure to post the model file and any error messages for the community to see.
  1 个评论
Evan Schein
Evan Schein 2022-2-2
Hi Ben,
Quck follow up here, any idea what these task blocks are and how they might relate to the state flow block that's shown here?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by