Home > functions > gui > bm_editor > bm_manager > bm_manager_get_bm_list_index.m

bm_manager_get_bm_list_index

PURPOSE ^

get display brain model index

SYNOPSIS ^

function [index] = bm_manager_get_bm_list_index(obj)

DESCRIPTION ^

 get display brain model index
 [USAGE]
    [index] = bm_manager_get_bm_list_index(<obj>);
 [IN]
    obj : bm_manager object
 [OUT]
    index : index(Nx1)

 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 [index] = bm_manager_get_bm_list_index(obj)
0002 % get display brain model index
0003 % [USAGE]
0004 %    [index] = bm_manager_get_bm_list_index(<obj>);
0005 % [IN]
0006 %    obj : bm_manager object
0007 % [OUT]
0008 %    index : index(Nx1)
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0018 if ~strcmp(obj.class_type, 'bm_manager')
0019     error('class type is invalid.');
0020 end
0021 
0022 %
0023 % --- Main Procedure
0024 %
0025 index = bm_list_get_brain_model_index(obj.bm_list);

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