Home > vbmeg > functions > common > utility > @file_dialog > subsref.m

subsref

PURPOSE ^

file_dialogクラス用のインデックス付きのフィールドメソッド

SYNOPSIS ^

function val = subsref(this, index)

DESCRIPTION ^

 file_dialogクラス用のインデックス付きのフィールドメソッド

 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 val = subsref(this, index)
0002 % file_dialogクラス用のインデックス付きのフィールドメソッド
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 switch index.type
0008   case '()'
0009     error('Structure array indexing not supported.')
0010     % switch index.subs{:}
0011     % case 1,    val = this.public.save_mode;
0012     % case 2,    val = this.public.file_extensions;
0013     % case 3,    val = this.public.current_extension;
0014     % case 4,    val = this.public.current_dir;
0015     % case 5,    val = this.public.current_file;
0016     % case 6,    val = this.public.hist_dir;
0017     % otherwise,    error('Index out of range')
0018     % end
0019   case '.'
0020     if isfield( this.public, lower(index.subs) )
0021       val = getfield(this.public, lower(index.subs));
0022     else
0023       error( sprintf('Invalid properties: ''%s''', index.subs) );
0024     end
0025   case '{}'
0026     error('Cell array indexing not supported.')
0027 end
0028

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005