user defined function blocks in simulink
显示 更早的评论
How to access the workspace variables in user defined function written inside the user defined function block in simulink ????
回答(1 个)
Ilham Hardy
2012-4-19
2 个投票
Right click on the UDF block >> "Edit mask" >> Go to "Parameters" or "Initialization" tab.
HTH,
ilham
1 个评论
Kaustubha Govind
2012-4-19
Essentially, you need to create a parameter for the block that can access the base workspace via the mask as Ilham suggested.
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!