Changeset 805
- Timestamp:
- Jul 31, 2014, 11:59:06 AM (10 years ago)
- Location:
- trunk/src/@xmltree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/@xmltree/convert.m
r723 r805 115 115 if (isa(varargin{i}, 'cell')) 116 116 types{i} = '{}'; 117 elseif is str(varargin{i})117 elseif ischar(varargin{i}) 118 118 types{i} = '.'; 119 119 subs{i} = varargin{i}; %strrep(varargin{i},' ',''); % deblank field name -
trunk/src/@xmltree/save.m
r723 r805 37 37 elseif nargin==2 38 38 %- Filename provided 39 if is str(filename)39 if ischar(filename) 40 40 [fid, msg] = fopen(filename,'w'); 41 41 if fid==-1, error(msg);end … … 54 54 print_subtree(tree,fid); 55 55 56 if nargin==2 & isstr(filename), fclose(fid); end56 if nargin==2 && ischar(filename), fclose(fid); end 57 57 58 58 if nargout==1, varargout{1} = tree; end
Note: See TracChangeset
for help on using the changeset viewer.