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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/882090/image.jpeg)
0 个评论
采纳的回答
Benjamin Thompson
2022-2-2
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!