dialog - Pop-up windows asking the user for input/save his work (MATLAB) -
i writing program , need help. starts asking question:
a = questdlg('what do?','artificial neural network',... 'train','test','exit','exit');
then depending use chooses asks questions , things
`if strcmp (a,'train')
b = questdlg ('would create new network or add trained data?',... '!','create','add','exit','exit'); if strcmp (b, 'create') if strcmp (b, 'create') %add many text file wants - need figure out how %can extract data them though [fname,dirpath]=uigetfile ('*.txt','select txt file','multiselect',... 'on'); elseif strcmp(b,'add') %choose type d = listdlg('promptstring','what colour it?',... 'selectionmode','single', 'liststring',... {'strawberry','orange',... 'chocolate','banana','rose'}, 'name','select ice cream',... 'listsize',[230 130]); %and whatever choise chooses feed main %function. example if chooses orange go %second part of training, if chooses rose , fifth %one , on. else strcmp(b,'exit') disp('exit') end so thing want is:
- how can user when imports txt files in matlab use them in order run program? and
- how can user add more choices @
listdlg, when choose choice automatically go corresponding step of code?
any appreciated!
thanks!! :)
ps: sorry long post!
with uigetfile etc. filename , path. data have load file:
for mat-files use:
for other files use:
Comments
Post a Comment