Changeset 727


Ignore:
Timestamp:
Mar 1, 2014, 5:12:13 PM (11 years ago)
Author:
sommeria
Message:

bug corrected for transform function path in series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r720 r727  
    26052605TransformPathList=get(handles.TransformName,'UserData');
    26062606nb_builtin_transform=4;
    2607 % ff=functions(list_transform{end});
    2608 if isequal(TransformName,'more...');
    2609 %     [FileName, PathName] = uigetfile( ...
    2610 %        {'*.m', ' (*.m)';
    2611 %         '*.m',  '.m files '; ...
    2612 %         '*.*', 'All Files (*.*)'}, ...
    2613 %         'Pick a transform function',get(handles.TransformPath,'String'));
    2614    
     2607if isequal(TransformName,'more...');     
    26152608    FileName=uigetfile_uvmat('Pick a transform function',get(handles.TransformPath,'String'),'.m');
    26162609    if isempty(FileName)
    26172610        return     %browser closed without choice
    26182611    end
    2619 %     if isequal(PathName(end),'/')||isequal(PathName(end),'\')
    2620 %         PathName(end)=[];
    2621 %     end
    26222612    [TransformPath,TransformName,TransformExt]=fileparts(FileName);% removes extension .m
    26232613    if ~strcmp(TransformExt,'.m')
     
    26322622        set(handles.TransformName,'String',TransformList)
    26332623        TransformPathList=[TransformPathList;{TransformPath}];
     2624    else% the input function already exist, we update its path (possibly new)
     2625        TransformPathList{TransformIndex}=TransformPath;%
     2626        set(handles.TransformName,'Value',TransformIndex)
    26342627    end
    26352628   % save the new menu in the personal file 'uvmat_perso.mat'
Note: See TracChangeset for help on using the changeset viewer.