Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

Description of get
Home > sltoolbox > fileio > @sllog > get.m

get

PURPOSE ^

GET Gets properties of a logger

SYNOPSIS ^

function R = get(logger, propname)

DESCRIPTION ^

GET Gets properties of a logger

 $ Syntax $
   - R = get(logger, propname)

 $ Description $
   - R = get(logger, propname) gets the property of specified name for
     the logger.

 $ History $
   - Created by Dahua Lin, on Aug 12nd, 2006

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • display DISPLAY displays the dataset fields.
  • subsref SUBSREF Get the properties by subscription
  • subsref SUBSREF Get the properties by subscription

SOURCE CODE ^

0001 function R = get(logger, propname)
0002 %GET Gets properties of a logger
0003 %
0004 % $ Syntax $
0005 %   - R = get(logger, propname)
0006 %
0007 % $ Description $
0008 %   - R = get(logger, propname) gets the property of specified name for
0009 %     the logger.
0010 %
0011 % $ History $
0012 %   - Created by Dahua Lin, on Aug 12nd, 2006
0013 %
0014 
0015 switch propname
0016     case 'rootpath'
0017         R = logger.rootpath;
0018     case 'indent'
0019         R = logger.indent;
0020     case 'numfiles'
0021         R = length(logger.files);
0022     case 'filepaths'
0023         R = {logger.files.filepath}';
0024     case 'winshow'
0025         R = logger.winshow;
0026     case 'files'
0027         R = logger.files;
0028     case 'timestamp'
0029         R = logger.timestamp;
0030     otherwise
0031         error('sltoolbox:invalidarg', ...
0032             'Invalid property name %s for sllog', propname);
0033 end

Generated on Wed 20-Sep-2006 12:43:11 by m2html © 2003

Contact us at files@mathworks.com