how can I express error message in text
    10 views (last 30 days)
  
       Show older comments
    
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.
0 Comments
Answers (1)
  Ravi
      
 on 15 Jul 2013
        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...
See Also
Categories
				Find more on MATLAB Compiler in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
