Importing variables into Simulink from Matlab

Hi all I am now trying to compile my Simulink model and having trouble linking my workspace variables.

 Réponse acceptée

Benjamin Thompson
Benjamin Thompson le 2 Fév 2022

0 votes

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 commentaire

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?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by