How to import variable into a MATLAB function in Simulink without explicitly defining them?

I have variable predefined in workspace and my custom MATLAB block needs to
access them. I guess I could pass the variable explicitly, but that is just so ugly.
Any idea how to do this?

추가 답변 (0개)

카테고리

제품

질문:

2013년 12월 28일

답변:

2013년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by