Home > functions > common > utility > @file_dialog > subsasgn.m

subsasgn

PURPOSE ^

file_dialogクラスのインデックスへの代入メソッド

SYNOPSIS ^

function this = subsasgn(this,index,val)

DESCRIPTION ^

 file_dialogクラスのインデックスへの代入メソッド
 実際の代入処理はsetメソッドをcallする。

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

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