필터 지우기
필터 지우기

Workspace variable not defined

조회 수: 1 (최근 30일)
Katy Zita
Katy Zita 2017년 2월 10일
댓글: Rik 2017년 2월 10일
Hello all, I have my model in Simulink and it runs perfectly. I wanted to add a script in m-file called using the callback OpenFcn, and in this script I want to calculate the power dissipated from all the devices in my model. I have set the workspace variable, but when I run the script, it tells me that the workspace variable is not defined. I have no idea how to solve this problem if anyone could help.
  댓글 수: 1
Rik
Rik 2017년 2월 10일
Could you show the part of the code that throws the error? And could you also copy the error stack (so all the red text, including the functions with line numbers)?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by