Home > functions > gui > brain_file_maker > brain_file_maker_set_output_filename.m

brain_file_maker_set_output_filename

PURPOSE ^

make output brain filename(for mask file) and

SYNOPSIS ^

function [obj] = brain_file_maker_set_output_filename(obj)

DESCRIPTION ^

 make output brain filename(for mask file) and 
 set it to brain_file_maker object
 [USAGE]
    [obj] = brain_file_maker_set_output_filename(<obj>);
 [IN]
    obj : brain_file_maker object
 [OUT]
    obj : brain_file_maker object

 Author: rhayashi
 Created: 2007-07-27

 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 [obj] = brain_file_maker_set_output_filename(obj)
0002 % make output brain filename(for mask file) and
0003 % set it to brain_file_maker object
0004 % [USAGE]
0005 %    [obj] = brain_file_maker_set_output_filename(<obj>);
0006 % [IN]
0007 %    obj : brain_file_maker object
0008 % [OUT]
0009 %    obj : brain_file_maker object
0010 %
0011 % Author: rhayashi
0012 % Created: 2007-07-27
0013 %
0014 % Copyright (C) 2011, ATR All Rights Reserved.
0015 % License : New BSD License(see VBMEG_LICENSE.txt)
0016 
0017 %
0018 % --- Previous check
0019 %
0020 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0021 
0022 %
0023 % --- Main Procedure
0024 %
0025 global vbmeg_inst;
0026 
0027 H = obj.H;
0028 
0029 base_file = [obj.brain_file_output_dir, filesep, obj.brain_file_output_filename];
0030 obj.output_mask_file  = [base_file, '.mask.mat'];
0031 obj.output_brain_file = [base_file, vbmeg_inst.const.BRAIN_EXTENSION];
0032 obj.output_area_file  = [base_file, vbmeg_inst.const.AREA_EXTENSION];
0033 obj.output_act_file   = [base_file, vbmeg_inst.const.FMRI_EXTENSION];
0034 
0035 %
0036 % --- After check
0037 %
0038 if nargout ~= 1
0039     error('function caller should receive obj.');
0040 end

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