Home > functions > gui > bm_editor > history > history_get_length.m

history_get_length

PURPOSE ^

get length of history

SYNOPSIS ^

function [len] = history_get_length(obj)

DESCRIPTION ^

 get length of history
 [USAGE]
    [length] = history_get_length(<obj>);
 [IN]
    obj : history object
 [OUT]
    length : history length

 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 [len] = history_get_length(obj)
0002 % get length of history
0003 % [USAGE]
0004 %    [length] = history_get_length(<obj>);
0005 % [IN]
0006 %    obj : history object
0007 % [OUT]
0008 %    length : history length
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 len = length(obj.item_list);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005