Code covered by the BSD License  

Highlights from
Use Mac OS X XML Plists with MATLAB (Updated Version)

Use Mac OS X XML Plists with MATLAB (Updated Version)

by

 

A updated version of that by John Iversen

cDATE
classdef cDATE
    properties
        str;
    end
    
    methods
        function data = cDATE(in)
           data.str = in;
        end
        function re=char(obj)
            re = obj.str;
        end
        function disp(obj)
            fprintf('%s\n',obj.str);
        end % disp
        function fprintf(varargin)
            for k=1:nargin
                 if isa(varargin{k},'cDATE')
                    varargin{k}=(varargin{k}.str);
                 end
            end
            fprintf(varargin{:});
        end
        function s = sprintf(varargin)
            for k=1:nargin
                 if isa(varargin{k},'cDATE')
                    varargin{k}=(varargin{k}.str);
                 end
            end
            s = sprintf(varargin{:});
         end           
    end
end

Contact us