How to import variable into a MATLAB function in Simulink without explicitly defining them?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Azzi Abdelmalek
2013년 12월 28일
Use data store memory block http://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html#bsdud7d-1
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!