presence of data in Simulink model workspace
1 次查看(过去 30 天)
显示 更早的评论
I am creating two custom Simulink blocks using Matlab System block method.
My intension is to understand how model workspace works. In one block some constants are loaded from a .mat file. When I use the“Model Explorer”, the constands are indeed appear in the model workspace. However, when I try to reference any of these constants in the second block, and error is generated since they are not recognized. What is wrong with my understanding of model workspace with regard to sharing of variables across blocks?
Thank you.
0 个评论
回答(1 个)
Keshav
2023-7-26
Hi,
Actually, the Model Workspace in MATLAB Simulink is specific to a particular model. Each Simulink model has its own Model Workspace, which is separate and independent from other models.
You can read more about model workspace in the below MathWorks documentation.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!