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 isactive
Home > sltoolbox > fileio > @sllog > isactive.m

isactive

PURPOSE ^

ISACTIVE Queries whether a log file is active

SYNOPSIS ^

function b = isactive(logger, filename)

DESCRIPTION ^

ISACTIVE Queries whether a log file is active

 $ Syntax $
   - b = isactive(logger, filename)

 $ Description $
   - b = isactive(logger, filename) queries whether a log file is active.

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

CROSS-REFERENCE INFORMATION ^

This function calls:
  • isattached ISATTACHED Judges whether the file is attached to the logger
This function is called by:

SOURCE CODE ^

0001 function b = isactive(logger, filename)
0002 %ISACTIVE Queries whether a log file is active
0003 %
0004 % $ Syntax $
0005 %   - b = isactive(logger, filename)
0006 %
0007 % $ Description $
0008 %   - b = isactive(logger, filename) queries whether a log file is active.
0009 %
0010 % $ History $
0011 %   - Created by Dahua Lin, on Aug 12, 2006
0012 %
0013 
0014 [tf, idx] = isattached(logger, filename);
0015 
0016 if tf
0017     b = logger.files(idx).isactive;
0018 else
0019     error('sltoolbox:invalidarg', ...
0020             'The file %s has not been added to the file list', fp);
0021 end
0022

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

Contact us at files@mathworks.com