Home > functions > gui > bm_editor > bm_list > bm_list_get_brain_model_index.m

bm_list_get_brain_model_index

PURPOSE ^

get brain model index

SYNOPSIS ^

function [index] = bm_list_get_brain_model_index(obj)

DESCRIPTION ^

 get brain model index
 [USAGE]
    [index] = bm_list_get_brain_model_index(<obj>);
 [IN]
    obj : bm_list object
 [OUT]
    index : index of bm_list object has. (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_list_get_brain_model_index(obj)
0002 % get brain model index
0003 % [USAGE]
0004 %    [index] = bm_list_get_brain_model_index(<obj>);
0005 % [IN]
0006 %    obj : bm_list object
0007 % [OUT]
0008 %    index : index of bm_list object has. (Nx1)
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 if ~strcmp(obj.class_type, 'bm_list')
0018     error('class type is invalid.');
0019 end
0020 
0021 %
0022 % --- Main Procedure
0023 %
0024 index = [1:1:length(obj.brain_data_list)];

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