Changeset 89 for trunk/src/get_field.m


Ignore:
Timestamp:
May 20, 2010, 1:48:25 AM (14 years ago)
Author:
sommeria
Message:

many bug corrections and cleaning. Activation of the BW option in uvmat. Improvement of the interaction of get_field with uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r59 r89  
    5555% Update handles structure
    5656guidata(hObject, handles);
    57 %pathuvmat=fileparts(which('uvmat'));
    58 %addpath(fullfile(pathuvmat,'FIELD_FCT'))
    59 %loads the information stored in prefdir to initiate the browser and the list of functions
     57
     58%ACTION menu: builtin fcts
    6059menu_str={'PLOT';'FFT';'filter_band';'histogram'}; %list of functions included in 'get_field.m'
    61 nb_builtin=numel(menu_str)-1;
    62 %menu_str(end)=[];%remove from the list the last option 'more...'
    63 path_get_field=fileparts(which('get_field'));%path of the function 'get_field'
     60nb_builtin=numel(menu_str);
     61path_uvmat=fileparts(which('uvmat'));%path of the function 'uvmat'
     62addpath(fullfile(path_uvmat,'get_field'))
     63testexist=zeros(size(menu_str'));%default
    6464for ilist=1:length(menu_str)
    65     fct_path{ilist,1}=fullfile(path_get_field,'get_field');%paths of the fuctions buil-in in 'get_field.m'
    66 end
     65    if exist(menu_str{ilist},'file')
     66        fct_handle{ilist,1}=str2func(menu_str{ilist});
     67        testexist(ilist)=1;
     68    else
     69        fct_handle{ilist,1}=[];
     70        testexist(ilist)=0;
     71    end
     72end
     73rmpath(fullfile(path_uvmat,'get_field'))
     74
    6775dir_perso=prefdir;
    6876profil_perso=fullfile(dir_perso,'uvmat_perso.mat');
     
    7381         for ilist=1:length(h.get_field_fct)
    7482            [path,file]=fileparts(h.get_field_fct{ilist});
    75             fct_path=[fct_path; {path}];%concatene the list of paths
    76             menu_str=[menu_str; {file}];
     83            addpath(path)       
     84            if exist(file,'file')
     85                h_func=str2func(file);
     86                testexist=[testexist 1];
     87             else
     88                h_func=[];
     89                testexist=[testexist 0];
     90             end
     91             fct_handle=[fct_handle; {h_func}]; %concatene the list of paths
     92             rmpath(path)
     93             menu_str=[menu_str; {file}];
    7794         end
    7895     end
    7996end
     97menu_str=menu_str(testexist==1);%=menu_str(testexist~=0)
     98fct_handle=fct_handle(testexist==1);
    8099menu_str=[menu_str;{'more...'}];
    81100set(handles.ACTION,'String',menu_str)
    82 set(handles.ACTION,'UserData',fct_path)% store the list of path in UserData of ACTION 
    83 ACTION_Callback(hObject, eventdata, handles)
     101set(handles.ACTION,'UserData',fct_handle)% store the list of path in UserData of ACTION
     102set(handles.path_action,'String',fullfile(path_uvmat,'get_field'))
     103set(handles.ACTION,'Value',1)% PLOT option selected
    84104set(hObject,'WindowButtonUpFcn',{@mouse_up_gui,handles})%set mouse click action function
    85105if exist('filename','var')& ischar(filename)
    86     set(handles.inputfile,'String',filename)
     106    set(handles.inputfile,'String',filename)% prefill the input file name
     107    set(handles.inputfile,'Enable','off')% desactivate the input file edit box   
     108    set(handles.list_fig,'Value',2)% plotting axes =uvmat selected
     109    set(handles.list_fig,'Visible','off')%
     110    set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt)
     111    set(handles.MenuOpen,'Visible','off')
     112    set(handles.MenuExport,'Visible','off')
     113    set(handles.MenuHelp,'Visible','off')
    87114    inputfile_Callback(hObject, eventdata, handles)
    88115else
    89116    set(handles.inputfile,'String','')   
    90117end
     118%ACTION_Callback(hObject, eventdata, handles)
    91119if exist('Field','var') & isstruct(Field)
    92120        Field_input(eventdata,handles,Field)
     
    194222    if ~isempty(VarType{imax}.vector_x) && ~isempty(VarType{imax}.vector_y)     
    195223        set(handles.check_vector,'Value',1)
     224        set(handles.check_scalar,'Value',0)
    196225        set(handles.vector_x,'Value',VarType{imax}.vector_x)
    197226        set(handles.vector_y,'Value',VarType{imax}.vector_y)
    198         set(handles.check_scalar,'Value',0)
     227        if ~isempty(VarType{imax}.coord_x) && ~isempty(VarType{imax}.coord_y)
     228            set(handles.coord_x_vectors,'Value',VarType{imax}.coord_x+1)
     229            set(handles.coord_y_vectors,'Value',VarType{imax}.coord_y+1)
     230        end
     231        if ~isempty(VarType{imax}.coord)
     232            set(handles.coord_y_vectors,'Value',VarType{imax}.coord(1)+1)
     233            if numel(VarType{imax}.coord)>=2
     234                set(handles.coord_x_vectors,'Value',VarType{imax}.coord(2)+1)
     235            end
     236        end
    199237    else
    200238        set(handles.check_scalar,'Value',1)
     
    202240        if isfield(VarType{imax},'scalar') && length(VarType{imax}.scalar)>=1
    203241            set(handles.scalar,'Value',VarType{imax}.scalar(1))
     242            if ~isempty(VarType{imax}.coord_x) && ~isempty(VarType{imax}.coord_y)
     243                set(handles.coord_x_scalar,'Value',VarType{imax}.coord_x+1)
     244                set(handles.coord_y_scalar,'Value',VarType{imax}.coord_y+1)
     245            end
     246            if ~isempty(VarType{imax}.coord)
     247                set(handles.coord_y_scalar,'Value',VarType{imax}.coord(1)+1)
     248                if numel(VarType{imax}.coord)>=2
     249                    set(handles.coord_x_scalar,'Value',VarType{imax}.coord(2)+1)
     250                end
     251            end
    204252        end
    205253    end
     
    284332% update_UserData(handles)
    285333
    286 %-------------------------------------------------------
     334%------------------------------------------------------------------------
    287335% --- Executes on selection change in scalar menu.
    288336function scalar_Callback(hObject, eventdata, handles)
    289 %-------------------------------------------------------
     337%------------------------------------------------------------------------
    290338Aindex=get(handles.scalar,'Value');
    291339Astring=get(handles.scalar,'String');
     
    293341update_field(hObject, eventdata, handles,VarName)
    294342
    295 %-------------------------------------------------------
     343%------------------------------------------------------------------------
    296344% --- Executes on selection change in coord_x_scalar.
    297345function coord_x_scalar_Callback(hObject, eventdata, handles)
    298 %-------------------------------------------------------
     346%------------------------------------------------------------------------
    299347index=get(handles.coord_x_scalar,'Value');
    300348string=get(handles.coord_x_scalar,'String');
     
    302350update_field(hObject, eventdata, handles,VarName)
    303351
    304 %-------------------------------------------------------
     352%------------------------------------------------------------------------
    305353% --- Executes on selection change in coord_y_scalar.
    306354function coord_y_scalar_Callback(hObject, eventdata, handles)
    307 %-------------------------------------------------------
     355%------------------------------------------------------------------------
    308356index=get(handles.coord_y_scalar,'Value');
    309357string=get(handles.coord_y_scalar,'String');
     
    311359update_field(hObject, eventdata, handles,VarName)
    312360
    313 %-------------------------------------------------------
     361%------------------------------------------------------------------------
    314362% --- Executes on selection change in coord_z_scalar.
    315363function coord_z_scalar_Callback(hObject, eventdata, handles)
    316 %-------------------------------------------------------
     364%------------------------------------------------------------------------
    317365index=get(handles.coord_z_scalar,'Value');
    318366string=get(handles.coord_z_scalar,'String');
     
    320368update_field(hObject, eventdata, handles,VarName)
    321369
    322 %-------------------------------------------------------
     370%------------------------------------------------------------------------
    323371% --- Executes on selection change in vector_x.
    324372function vector_x_Callback(hObject, eventdata, handles)
    325 %-------------------------------------------------------
     373%------------------------------------------------------------------------
    326374index=get(handles.vector_x,'Value');
    327375string=get(handles.vector_x,'String');
     
    329377update_field(hObject, eventdata, handles,VarName)
    330378
    331 %-------------------------------------------------------
     379%------------------------------------------------------------------------
    332380% --- Executes on selection change in vector_y.
    333381function vector_y_Callback(hObject, eventdata, handles)
    334 %-------------------------------------------------------
     382%------------------------------------------------------------------------
    335383index=get(handles.vector_y,'Value');
    336384string=get(handles.vector_y,'String');
     
    338386update_field(hObject, eventdata, handles,VarName)
    339387
    340 %-------------------------------------------------------
     388%------------------------------------------------------------------------
    341389% --- Executes on selection change in vector_z.
    342390function vector_z_Callback(hObject, eventdata, handles)
    343 %-------------------------------------------------------
     391%------------------------------------------------------------------------
    344392index=get(handles.vector_z,'Value');
    345393string=get(handles.vector_z,'String');
     
    347395update_field(hObject, eventdata, handles,VarName)
    348396
    349 %-------------------------------------------------------
     397%------------------------------------------------------------------------
    350398% --- Executes on selection change in coord_x_vectors.
    351399function coord_x_vectors_Callback(hObject, eventdata, handles)
    352 %-------------------------------------------------------
     400%------------------------------------------------------------------------
    353401index=get(handles.coord_x_vectors,'Value');
    354402string=get(handles.coord_x_vectors,'String');
     
    736784function RUN_Callback(hObject, eventdata, handles)
    737785%---------------------------------------------------------
    738 path_get_field=fileparts(which('get_field'));
    739 list=get(handles.ACTION,'String');
     786%path_get_field=fileparts(which('get_field'));
     787%list=get(handles.ACTION,'String');
    740788index=get(handles.ACTION,'Value');
    741 ACTION=list{index};
    742 list_path=get(handles.ACTION,'UserData');
    743 %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface
    744 fct_path=list_path{index}; %path stored for the function ACTION
    745 if ~isequal(fct_path,path_get_field)
    746 %     eval(['spath=which(''' action ''');']) %spath = current path of the selected function ACTION
    747 %     if ~isequal(spath,fct_path)& exist(fct_path,'dir')
    748         addpath(fct_path)% add the prescribed path if not the current one
    749 %     end
    750 end
    751 % fct_path
    752 eval(['h_fun=@' ACTION ';'])
    753 if ~isequal(fct_path,path_get_field)
    754         rmpath(fct_path)% add the prescribed path if not the current one   
    755 end
    756 
     789% ACTION=list{index};
     790list_func=get(handles.ACTION,'UserData');
     791h_fun=list_func{index};
     792% %hselect_field=get(handles.inputfile,'parent');%handle of the get_field interface
     793% fct_path=list_path{index}; %path stored for the function ACTION
     794% if ~isequal(fct_path,path_get_field)
     795%     addpath(fct_path)% add the prescribed path if not the current one
     796% end
     797% eval(['h_fun=@' ACTION ';'])
     798% if ~isequal(fct_path,path_get_field)
     799%      rmpath(fct_path)% add the prescribed path if not the current one   
     800% end
    757801set(handles.RUN,'BackgroundColor',[0.831 0.816 0.784])
    758802drawnow
    759 h_fun(handles.figure1);%handles.figure1 =handles of the GUI get_field
     803SubField=h_fun(handles.figure1);%handles.figure1 =handles of the GUI get_field
     804if ~isempty(SubField)
     805    plot_get_field(SubField,handles)
     806end
    760807browse_fig(handles.list_fig); %update the list of new existing figures
    761808
     809%------------------------------------------------------------------------
     810function plot_get_field(SubField,handles)
     811%------------------------------------------------------------------------
     812list_fig=get(handles.list_fig,'String');
     813val=get(handles.list_fig,'Value');
     814if strcmp(list_fig{val},'uvmat')
     815    set(handles.figure1,'Name','uvmat_field')
     816    set(handles.inputfile,'Enable','off')% desactivate the input file edit box   
     817%     set(handles.list_fig,'Visible','off')%
     818    set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt)
     819    set(handles.MenuOpen,'Visible','off')
     820    set(handles.MenuExport,'Visible','off')
     821    uvmat(get(handles.inputfile,'String'))
     822else
     823    hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI
     824    if isempty(hfig)
     825        hfig=figure;
     826        list_fig=[list_fig;num2str(hfig)];
     827        set(handles.list_fig,'String',list_fig);
     828        haxes=axes;
     829    else
     830        figure(hfig);
     831    end
     832    haxes=findobj(hfig,'Type','axes');
     833    plot_field(SubField,haxes)
     834end
    762835
    763836%------------------------------------------------
     
    10381111if isequal(val,0)
    10391112    set(handles.PanelScalar,'Visible','off')
    1040 %      set(handles.scalar,'Visible','off')
    1041 %     set(handles.ordinate,'Max',2.0)%allow multiple ordinate input option
    1042 %     if isequal(get(handles.check_vector,'Value'),0);
    1043 %         set(handles.coord_z_vectors_scalar,'Visible','off')
    1044 %     end
    10451113else
    10461114    set(handles.PanelScalar,'Visible','on')
    1047 %     set(handles.scalar,'Visible','on')
    1048 %     val=get(handles.ordinate,'Value');
    1049 %     val=val(1);
    1050 %     set(handles.ordinate,'Value',val);%suppress multiple ordinates
    1051 %     set(handles.ordinate,'Max',1.0);%suppress multiple ordinate input option
    1052 %       set(handles.coord_z_vectors_scalar,'Visible','on')
    10531115end
    10541116
     
    10621124    set(handles.PanelVectors,'Visible','on')
    10631125end
    1064 
    1065 
    10661126
    10671127%-----------------------------
     
    10881148index_ACTION=get(handles.ACTION,'Value');% selected string index
    10891149ACTION= list_ACTION{index_ACTION}; % selected string
    1090 path_get_field=which('get_field');%path to series.m
    1091 list_path=get(handles.ACTION,'UserData');
    1092 
    1093 % nb_builtin=0;
    1094 % if iscell(list_path)
    1095 %     for ilist=1:length(list_path)
    1096 %         if isequal(list_path{ilist},path_get_field)
    1097 %             nb_builtin=nb_builtin+1;
    1098 %         else
    1099 %             break
    1100 %         end
    1101 %     end
    1102 % end
    1103 % if nb_builtin==0% the path to get_field has been changed, reinitialize
    1104 %     get_field_OpeningFcn(hObject, eventdata, handles)
    1105 %     return
    1106 % end
    1107 
     1150list_func_handles=get(handles.ACTION,'UserData');% get list of function handles (full address of the function, including name and path)
     1151ff=functions(list_func_handles{end});
    11081152% add a new function to the menu
    11091153if isequal(ACTION,'more...')
    1110     pathfct=fileparts(path_get_field);
    1111     browse_name=fullfile(path_get_field,'FIELD_FCT');
    1112     if length(list_path)>nb_builtin
    1113         browse_name=list_path{end};% initialize browser with  the path of the last introduced function
    1114     end
     1154%     pathfct=fileparts(path_get_field);
     1155%     browse_name=fullfile(path_get_field,'FIELD_FCT');
     1156%     if length(list_path)>nb_builtin
     1157%         browse_name=list_path{end};% initialize browser with  the path of the last introduced function
     1158%     end
    11151159    [FileName, PathName] = uigetfile( ...
    11161160       {'*.m', ' (*.m)';
    11171161        '*.m',  '.m files '; ...
    11181162        '*.*', 'All Files (*.*)'}, ...
    1119         'Pick a file',browse_name);
     1163        'Pick a file',ff.file);
    11201164    if length(FileName)<2
    11211165        return
     
    11261170        return
    11271171    end
    1128 %     ACTION=FileName(1:end-2);% ACTION choice updated by the selected item 
     1172
    11291173    % insert the choice in the action menu
    11301174   menu_str=update_menu(handles.ACTION,ACTION);%new action menu in which the new item has been appended if needed
    11311175   index_ACTION=get(handles.ACTION,'Value');% currently selected index in the list
    1132    list_path{index_ACTION}=PathName;
     1176   addpath(PathName)
     1177   list_func_handles{index_ACTION}=str2func(ACTION);% create the function handle corresponding to the newly seleced function
     1178   set(handles.ACTION,'UserData',list_func_handles)
     1179   set(handles.path_action,'enable','inactive')% indicate that the current path is accessible (not 'off')
     1180   %list_path{index_ACTION}=PathName;
    11331181   if length(menu_str)>nb_builtin+5;
    11341182       nbremove=length(menu_str)-nb_builtin-5;
    11351183       menu_str(nb_builtin+1:end-5)=[];
    1136        list_path(nb_builtin+1:end-4)=[];
     1184       list_func_handles(nb_builtin+1:end-4)=[];
    11371185       index_ACTION=index_ACTION-nbremove;
    11381186       set(handles.ACTION,'Value',index_ACTION)
    11391187       set(handles.ACTION,'String',menu_str)
    1140    end
    1141    list_path{index_ACTION}=PathName;
    1142    set(handles.ACTION,'UserData',list_path);
    1143    set(handles.path_action,'enable','inactive')% indicate that the current path is accessible (not 'off')
    1144    
     1188   end   
    11451189   %record the current menu in personal file profil_perso
    11461190   dir_perso=prefdir;
    11471191   profil_perso=fullfile(dir_perso,'uvmat_perso.mat');
    11481192   for ilist=nb_builtin+1:length(menu_str)-1
    1149        get_field_fct{ilist-nb_builtin}=fullfile(list_path{ilist},[menu_str{ilist} '.m']);
     1193       ff=functions(list_func_handles{ilist});
     1194       get_field_fct{ilist-nb_builtin}=ff.file;
    11501195   end
    11511196   if exist(profil_perso,'file')
     
    11631208end
    11641209
    1165    %check the current path to the selected function
    1166 PathName=list_path{index_ACTION};%current recorded path
    1167 % if ~isequal(path_get_field,PathName)
    1168 %     CurrentPath=fileparts(which(ACTION));
    1169 %     if ~isequal(CurrentPath,PathName)%&&~isequal(CurrentPath,fullfile(PathName,'private'))
    1170 %         addpath(PathName)
    1171 %         errormsg=check_functions;
    1172 %         msgbox_uvmat('CONFIRMATION',[['path ' PathName ' added to the current Matlab pathes'];errormsg])
    1173 %     end
    1174 % end
    1175 set(handles.path_action,'String',PathName); %show the path to the senlected function
    1176    
    1177    
    1178 %     fct_name=fullfile(PathName, FileName);
    1179 %     if ~exist(fct_name,'file')
    1180 %            msgbox_uvmat('ERROR',['procesing fct ' fct_name ' not found'])
    1181 %     else
    1182 %        ACTION=FileName(1:end-2);%
    1183 %        menu=update_menu(handles.ACTION,ACTION);%add the selected fct to the menu
    1184 %        index_ACTION=get(handles.ACTION,'Value');% selected string index
    1185 %        list_path{index_ACTION}=PathName;
    1186 %        set(handles.ACTION,'UserData',list_path)
    1187 %        if exist(profil_perso,'file')
    1188 %             save (profil_perso,'coord_fct','-append'); %store the root name for future opening of uvmat
    1189 %         end
    1190 %     end   
    1191 %     
    1192 %     
    1193 %     fileinput=FileName;%complete file name
    1194 %     eval(['spath=which(''' FileName ''');'])% current path to the function FileName
    1195 %     if ~isequal(spath,PathName)
    1196 %         addpath(PathName)
    1197 %     end
    1198 %     FileName([end-1:end])=[];
    1199 %     
    1200 %    % insert the choice in the action menu
    1201 %     nbACTION=length(list_ACTION);
    1202 %     index=0;
    1203 %     for ilist=1:nbACTION
    1204 %        if isequal(FileName,list_ACTION{ilist})%look for the selected scalar in the fields_input menu
    1205 %             index=ilist;%
    1206 %        end
    1207 %     end
    1208 %     if index==0
    1209 %        list_ACTION{nbACTION}=FileName; %put the chosen fct at the penultimate place in the fields_input menu
    1210 %        list_path{nbACTION}=PathName;
    1211 %        index=nbACTION;
    1212 %        list_ACTION{nbACTION+1}='more...';
    1213 %        set(handles.ACTION,'String',list_ACTION)
    1214 %     end
    1215 %     set(handles.ACTION,'Value',index);% store the selected scalar type
    1216 %     set(handles.ACTION,'UserData',list_path);
    1217 %     usr_defined_fct=fct_name;
    1218 %     nbmenu=length(list_ACTION);
    1219 %     nbadd=nbmenu-5;
    1220 %     ilist=0;
    1221 %     for imenu=nbmenu-min(4,nbadd):nbmenu-1
    1222 %       ilist=ilist+1;
    1223 %       fct_get_field{ilist,1}=list_ACTION{imenu};
    1224 %       fct_path_get_field{ilist}=list_path{imenu};
    1225 %     end
    1226 %     if exist(profil_perso,'file')
    1227 %         save(profil_perso,'usr_defined_fct','fct_get_field','fct_path_get_field','-append')
    1228 %     else
    1229 %        save(profil_perso,'usr_defined_fct','fct_get_field','fct_path_get_field','-V6')
    1230 %     end
    1231 % end
    1232 
    1233 % %check the current path to the selected function
    1234 % list_path
    1235 % PathName=list_path{index_ACTION}
    1236 % CurrentPath=fileparts(which(ACTION))
    1237 % if ~isequal(PathName,CurrentPath)
    1238 %     addpath(PathName)
    1239 %     errormsg=check_functions;
    1240 %     msgbox_uvmat('WARNING',[['path ' PathName ' added to the current Matlab pathes'];errormsg])
    1241 % end
    1242 % set(handles.path_action,'String',fullfile(PathName,' ')); %show the path to the senlected function
    1243 
    1244 %default setting for the visibility of the GUI elements*
    1245 if ~isequal(ACTION,'PLOT')
    1246     varargout=feval(ACTION);% input list asked by the selected function
    1247     test_1Dplot=[];
    1248     test_scalar=[];
    1249     test_vector=[];
    1250     for ilist=1:length(varargout)
    1251         switch varargout{ilist,1}
     1210%check the current path to the selected function
     1211h_fun=list_func_handles{index_ACTION};
     1212if isa(h_fun,'function_handle')
     1213    func=functions(h_fun);
     1214    set(handles.path_action,'String',fileparts(func.file)); %show the path to the senlected function
     1215    GUI_input=h_fun();%handles.figure1 =handles of the GUI get_field
     1216else
     1217    set(handles.path_action,'String','')
     1218    msgbox_uvmat('ERROR','unknown path to ACTION function, reload it')
     1219    return
     1220end
     1221
     1222%prepare the GUI options for the selected ACTION
     1223test_1Dplot=0;
     1224test_scalar=0;
     1225test_vector=0;
     1226if iscell(GUI_input)
     1227    for ilist=1:length(GUI_input)
     1228        switch GUI_input{ilist}
    12521229                           %RootFile always visible
    12531230            case 'check_1Dplot'   
    1254                  test_1Dplot=isequal(lower(varargout{ilist,2}),'y');
     1231                 test_1Dplot=1;
    12551232            case 'check_scalar'
    1256                  test_scalar=isequal(lower(varargout{ilist,2}),'y');   
     1233                 test_scalar=1;   
    12571234            case 'check_vector'   
    1258                  test_vector=isequal(lower(varargout{ilist,2}),'y');
     1235                 test_vector=1;
    12591236        end
    12601237    end
    1261     if test_1Dplot==0
    1262         set(handles.check_1Dplot,'Value',0);
    1263     end
    1264     if test_1Dplot==1
    1265         set(handles.check_1Dplot,'Value',1);
    1266     end
    1267     if test_scalar==0
    1268         set(handles.check_scalar,'Value',0);
    1269     end
    1270     if test_scalar==1
    1271         set(handles.check_scalar,'Value',1);
    1272     end
    1273     if test_vector==0
    1274         set(handles.check_vector,'Value',0);
    1275     end
    1276     if test_vector==1
    1277         set(handles.check_vector,'Value',1);
    1278     end
    1279     check_1Dplot_Callback(hObject, eventdata, handles)
    1280     check_scalar_Callback(hObject, eventdata, handles)
    1281     check_vector_Callback(hObject, eventdata, handles)
    1282 end
     1238end
     1239set(handles.check_1Dplot,'Value',test_1Dplot);
     1240set(handles.check_scalar,'Value',test_scalar);
     1241set(handles.check_vector,'Value',test_vector);
     1242check_1Dplot_Callback(hObject, eventdata, handles)
     1243check_scalar_Callback(hObject, eventdata, handles)
     1244check_vector_Callback(hObject, eventdata, handles)
     1245
    12831246
    12841247%-----------------------------------------------------
     
    14631426end
    14641427
    1465 % %store input file in personal file uvmat_perso.mat
    1466 % dir_perso=prefdir;
    1467 % profil_perso=fullfile(dir_perso,'uvmat_perso.mat');
    1468 % if exist(profil_perso,'file')
    1469 %     save (profil_perso,'RootPath','SubDir','RootFile','NomType', 'ext','-append'); %store the root name for future opening of uvmat
    1470 % else
    1471 %    save (profil_perso,'RootPath','SubDir','RootFile','NomType', 'ext'); %store the root name for future opening of uvmat
    1472 % end   
    1473 
    1474 
    14751428% --------------------------------------------------------------------
    14761429function MenuFile_1_Callback(hObject, eventdata, handles)
Note: See TracChangeset for help on using the changeset viewer.