function [Volume]=fmris_vect_cb(Volume); Volume.LM.Vect.Error=0; for i=1:Volume.LM.Vect.numvec; if isempty(get(findobj(gcf,'Tag',['Rep_' num2str(i)]),'String')) Volume.LM.Vect.Error=1; end end if Volume.LM.Vect.Error==1; errordlg('Undefined Params','Error'); else if strcmp(Volume.LM.Vect.funct,'DC') Volume.LM.DelayCont=zeros(1,Volume.LM.Vect.numvec); elseif strcmp(Volume.LM.Vect.funct,'RD') Volume.LM.RefDelay.RefDelay=zeros(1,Volume.LM.Vect.numvec); Volume.LM.RefDelay.string=[]; end for i=1:Volume.LM.Vect.numvec; if strcmp(Volume.LM.Vect.funct,'DC') Volume.LM.DelayCont(i)=get(findobj(gcf,'Tag',['Rep_',num2str(i)]),'Value')-1; elseif strcmp(Volume.LM.Vect.funct,'RD') Volume.LM.RefDelay.RefDelay(i)=str2num(get(findobj(gcf,'Tag',['Rep_',num2str(i)]),'String')); Volume.LM.RefDelay.string=strvcat(Volume.LM.RefDelay.string,get(findobj(gcf,'Tag',['Rep_',num2str(i)]),'String')); end end end