simulink - how to create a function within a function
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I have a problem with creating an Embedded Matlab Function (Matlab 7), lets say function 1, which uses another function (function 2) in the workspace (that is an m-file). Function 2 uses another m-file function.
I get an error: 'Undefined function or variable function 2. The first assignment to a local variable determines its class. Inputs, outputs, and parameters inherit their class from the model explorer.#
Have you got any idea how can solve this? Cheers
댓글 수: 2
Jonathan LeSage
2013년 11월 4일
Could you post your embedded matlab code and the code of function 2? I'm trying to get an idea of what might be going wrong.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!