0001 function b = subsref(net,index)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 switch index.type
0014 case '()'
0015 error('Array indexing not supported by operator objects')
0016 case '.'
0017 switch index.subs
0018 case 'nin',
0019 b = net.nin;
0020 case 'nout',
0021 b = net.nout;
0022 case 'c'
0023 b = net.c;
0024 case 'h'
0025 b = net.h;
0026 case 'v'
0027 b = net.v;
0028 case 'w'
0029 b = net.w;
0030 case 'mu'
0031 b = net.mu;
0032 case 'sg'
0033 b = net.sg;
0034 otherwise
0035 error('Invalid field name')
0036 end
0037 case '{}'
0038 error('Cell array indexing not supported by operator objects')
0039 end