필터 지우기
필터 지우기

Error (error in line 42) in using matlab execution (guide compiled) file.

조회 수: 11 (최근 30일)
MUKHTAR MANSURI
MUKHTAR MANSURI 2018년 9월 17일
댓글: Walter Roberson 2018년 9월 26일
I have made a guide and compile it. When I install its execution file in my laptop it is working well but when I install in others laptop it showing error (error in line 42, which is main function file and can't be edited). help me to solve the problem so that it will distribute to others for use.
  댓글 수: 5
Image Analyst
Image Analyst 2018년 9월 26일
That doesn't make sense. First you say the error is during compilation (that is, when you run mcc to compile your program into a standalone executable). Then you said it happens AFTER compilation when you try to launch your standalone program. Which is it?
And like Jan said, attach the whole error message. Line 42 is just boilerplate guide stuff - not the true cause of the error. There is something in your openingFcn() that is probably causing the problem, like the file you need was not included or you contructed its full filename incorrectly.
Walter Roberson
Walter Roberson 2018년 9월 26일
My guess is that you have a callback that refers to a function that is not part of the main .m file, and which you have not added to the project. MATLAB cannot always automatically find references to functions when they are coded in callbacks attached to graphics objects or when they are coded as character vectors.

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

답변 (1개)

Bruno Luong
Bruno Luong 2018년 9월 26일
편집: Bruno Luong 2018년 9월 26일
Shooting in the dark : Delete the line #42 (that the best I can do to help you).

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by