Importing variables into Simulink from Matlab

112 views (last 30 days)
Hi all I am now trying to compile my Simulink model and having trouble linking my workspace variables.

Accepted Answer

Benjamin Thompson
Benjamin Thompson on 2 Feb 2022
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 Comment
Evan Schein
Evan Schein on 2 Feb 2022
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!