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:

  1. how can user when imports txt files in matlab use them in order run program? and
  2. 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:

tmw: load mat-files

for other files use:

tmw: load data file


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -