Changeset 1302


Ignore:
Timestamp:
07/13/09 10:58:43 (16 years ago)
Author:
Mathieu Morlighem
Message:

modification of a file if nargin==1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Exp/expmaster.m

    r1294 r1302  
    2222        error('expmaster usage: expmaster(newfile,varargin)')
    2323elseif exist(newfile),
     24        %recursive call to expmaster if file already exists
     25        if nargin==1,
     26                expmaster(newfile,newfile);
     27                return;
     28        end
     29
     30        %check modification
    2431        choice=input(['A file ' newfile ' already exists, do you want to modify it? (y/n)'],'s');
    2532        if ~strcmpi(choice,'y'),
Note: See TracChangeset for help on using the changeset viewer.