Undefined variable "emlcoderprivate" error when running Stateflow on Matlab 2012b
이전 댓글 표시
Hi,
I am very new to Stateflow, and I have created a simple state machine on Matlab 2012b (32-bit version). Whenever I try to an Update Diagram or start the simulation, I get the following model error message:
"Undefined variable "emlcoderprivate" or class "emlcoderprivate.compiler_supports_eml_ipp".
I have tried using Microsoft Visual C++ 2010 Express as the compiler, but I still get the same error message.
Can anyone please help me shed some light into this?
Thank you so much for all of your help, Victoria
댓글 수: 3
Pranav Paranjape
2016년 9월 27일
Hi Victoria,
I faced a similar problem using my Matlab... I use Matlab 2010b. My mentor helped me solve this error. Usually such an error is caused when there is some issue with the matlab path. Type "restoredefaultpath" in the Matlab command window and that should solve the problem. It did in my case. Now when you re-open Matlab, you might get an error if the default directory is set to Windows. You can change that by right-clicking on the Matlab icon -> select "Properties" -> specify any path other than Windows in the field "Start in". Restart matlab using the same icon and the error will not appear. Hope this helps!
danli
2016년 10월 20일
what do you mean by saying"Now when you re-open Matlab, you might get an error if the default directory is set to Windows. You can change that by right-clicking on the Matlab icon -> select "Properties" -> specify any path other than Windows in the field "Start in". ”
Walter Roberson
2016년 10월 20일
In Windows Explorer you can right-click on the icon for MATLAB and select Properties and change the Start In directory to your home directory.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!