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
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
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에 대해 자세히 알아보기

질문:

2012년 4월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by