Home > functions > gui > bm_editor > brain_data > brain_data_get_history_item_all.m

brain_data_get_history_item_all

PURPOSE ^

get description and parameter.

SYNOPSIS ^

function [description_cell, parm_cell] = brain_data_get_history_item_all(obj)

DESCRIPTION ^

 get description and parameter.
 [USAGE]
    [description_cell, parm_cell] = brain_data_get_history_item_all(<obj>);
 [IN]
    obj : brain_data object
 [OUT]
    description_cell : description of processing (Nx1)
           parm_cell : structure of processing   (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 [description_cell, parm_cell] = brain_data_get_history_item_all(obj)
0002 % get description and parameter.
0003 % [USAGE]
0004 %    [description_cell, parm_cell] = brain_data_get_history_item_all(<obj>);
0005 % [IN]
0006 %    obj : brain_data object
0007 % [OUT]
0008 %    description_cell : description of processing (Nx1)
0009 %           parm_cell : structure of processing   (Nx1)
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0018 
0019 %
0020 % --- Main Procedure
0021 %
0022 Nitem = history_get_length(obj.history);
0023 
0024 description_cell = cell(Nitem, 1);
0025 parm_cell        = cell(Nitem, 1);
0026 
0027 for k=1:Nitem
0028     [description, parm] = history_get_item(obj.history, k);
0029     description_cell{k} = description;
0030     parm_cell{k} = parm;
0031 end
0032

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