user defined function blocks in simulink

1 次查看(过去 30 天)
How to access the workspace variables in user defined function written inside the user defined function block in simulink ????

回答(1 个)

Ilham Hardy
Ilham Hardy 2012-4-19
Right click on the UDF block >> "Edit mask" >> Go to "Parameters" or "Initialization" tab.
HTH,
ilham
  1 个评论
Kaustubha Govind
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 String 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by