Home > @ahrbf > subsref.m

subsref

PURPOSE ^

SUBSREF Define field name indexing for ahrbf objects

SYNOPSIS ^

function b = subsref(net,index)

DESCRIPTION ^

SUBSREF Define field name indexing for ahrbf objects
   Access contents of the elements of the net. One is not allowed
   to modify these contents.
   See class documentation for Matlab for explanation of this 
   function

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function  b = subsref(net,index)
0002 %SUBSREF Define field name indexing for ahrbf objects
0003 %   Access contents of the elements of the net. One is not allowed
0004 %   to modify these contents.
0005 %   See class documentation for Matlab for explanation of this
0006 %   function
0007 
0008 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0009 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@ahrbf/subsref.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0010 
0011 % $NoKeywords: $
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

Generated on Tue 27-Mar-2007 12:06:24 by m2html © 2003