Home > vbmeg > functions > common > utility > stack > tools > vb_f_stack_delete.m

vb_f_stack_delete

PURPOSE ^

clean up temporary files

SYNOPSIS ^

function vb_f_stack_delete(obj)

DESCRIPTION ^

 clean up temporary files
 [USAGE]
    vb_f_stack_delete(obj);
 [IN]
    obj : f_stack object
 [OUT]
    none

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vb_f_stack_delete(obj)
0002 % clean up temporary files
0003 % [USAGE]
0004 %    vb_f_stack_delete(obj);
0005 % [IN]
0006 %    obj : f_stack object
0007 % [OUT]
0008 %    none
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0017 
0018 %
0019 % --- Main Procedure
0020 %
0021 for k=length(obj.queue):-1:1
0022     if ~isempty(obj.queue{k}) && exist(obj.queue{k}, 'file') == 2
0023         delete(obj.queue{k});
0024         obj.queue(k) = [];
0025     end
0026 end
0027 
0028 %
0029 % --- After check
0030 %

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005