Changeset 805 for trunk


Ignore:
Timestamp:
Jul 31, 2014, 11:59:06 AM (7 years ago)
Author:
sommeria
Message:

isstr replaced by ischar

Location:
trunk/src/@xmltree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/@xmltree/convert.m

    r723 r805  
    115115    if (isa(varargin{i}, 'cell'))
    116116        types{i} = '{}';
    117     elseif isstr(varargin{i})
     117    elseif ischar(varargin{i})
    118118        types{i} = '.';
    119119        subs{i} = varargin{i}; %strrep(varargin{i},' ',''); % deblank field name
  • trunk/src/@xmltree/save.m

    r723 r805  
    3737elseif nargin==2
    3838        %- Filename provided
    39         if isstr(filename)
     39        if ischar(filename)
    4040                [fid, msg] = fopen(filename,'w');
    4141                if fid==-1, error(msg);end
     
    5454print_subtree(tree,fid);
    5555
    56 if nargin==2 & isstr(filename), fclose(fid); end
     56if nargin==2 && ischar(filename), fclose(fid); end
    5757
    5858if nargout==1, varargout{1} = tree; end
Note: See TracChangeset for help on using the changeset viewer.