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

close

PURPOSE ^

CLOSE Closes the logger

SYNOPSIS ^

function logger = close(logger)

DESCRIPTION ^

CLOSE Closes the logger

 $ Syntax $
   - logger = close(logger)

 $ Description $
   - logger = close(logger) closes the logger by closing all filehandles
     and set the winshow to false

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

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • edl_go EDL_GO The Top interface for doing experiments in EDL

SOURCE CODE ^

0001 function logger = close(logger)
0002 %CLOSE Closes the logger
0003 %
0004 % $ Syntax $
0005 %   - logger = close(logger)
0006 %
0007 % $ Description $
0008 %   - logger = close(logger) closes the logger by closing all filehandles
0009 %     and set the winshow to false
0010 %
0011 % $ History $
0012 %   - Created by Dahua Lin, on Aug 12nd, 2006
0013 %
0014 
0015 logger.winshow = false;
0016 
0017 if ~isempty(logger.files)
0018     nf = length(logger.files);
0019     F = logger.files;
0020     
0021     for i = 1 : nf
0022         fclose(F(i).fid);
0023     end
0024     
0025     logger.files = [];
0026 end

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

Contact us at files@mathworks.com