how can I express error message in text

조회 수: 1 (최근 30일)
Chang Jae Kim
Chang Jae Kim 2013년 7월 15일
Hello you guys
I made a GUI for ANN. the GUI is worked by loading the mat file, saved the learning result.
after confirming that GUI works, I tried to make the GUI into .exe file.
I used command 'deploytool' and follow a procedure to make a .exe file.
but, when the .exe file works, the output didn't express in .exe file.
I don't know what the error is. please suggest your opinion to me.
additionally I want to use 'try-catch' to find error and express in any static text.
but, it also have a problem. the following is the command to find error
try load('CBM_DC.mat') p1=str2double(get(handles.depth,'String')); p2=str2double(get(handles.perm,'String')); p3=str2double(get(handles.thick,'String')); p4=str2double(get(handles.rank,'String')); p5=str2double(get(handles.content,'String')); p6=str2double(get(handles.strength,'String')); p7=str2double(get(handles.extent,'String')); p8=str2double(get(handles.dip,'String')); p9=str2double(get(handles.num,'String')); input=[p1 p2 p3 p4 p5 p6 p7 p8 p9]; [i1,is]=removeconstantrows(input); [i2,is]=mapminmax(i1); out=sim(net,i2'); fprintf('%8.1f \n',out); catch exception load('cbm_DC.mat') end
set(handles.error,'String',out)
in this command, 'set(handles.error,'String',out)' is the cause of error. please let me know what I should do. thank you.

답변 (1개)

Ravi
Ravi 2013년 7월 15일
By using deploytool we can make .exe file... So GUI's wont work when made into application format...
try with "mbuild -setup" select a compiler... then run....
Even "matlab compiler runtime engine" software may heip this problem...
  댓글 수: 1
Chang Jae Kim
Chang Jae Kim 2013년 7월 15일
I made a console application and tried to work exe. file
and I finde the error as followed
???Error using --> load Unable to read file cbm_DC.mat:No such file or directory.
what should I do to solve this problem? please help me.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by