matlab - How to run GUI in my script -
i using cvap clustering toolbox based on gui. after loading data, using run clustering , run validation commands, respectively. then, choosing error rate option tool menu. need repeat process 20-30 times. and,in each time need save , open result file, @ clustering outputs.to avoid manual process, there way run gui in script? basically, need "click" run clustering , run validation button choose error rate tool menu in script.
here simple example of how use gui script. assuming know gui's should make sense. if not let me know.
first handle of gui
guihandle = guidata(guiname);
then in script can press buttons (execute button callback function) using type of command:
guiname('callback_functionname',guihandle.callback_functionname,callback_inputs,guihandle);
this run whatever callback does. make sure before have manipulated whatever inputs button callback need. mentioned you'll need choose error rate option. since don't know exact code it's hard how this. script can set tool menu value this:
set(guihandle.tool_menu,'value',value);
maybe isn't helpful example that's idea. let me know if doesn't make sense.
Comments
Post a Comment