Home > @ahrbf > subsasgn.m

subsasgn

PURPOSE ^

SUBSASGN Define index assignment for ahrbf objects

SYNOPSIS ^

function net = subsasgn(net,index,val)

DESCRIPTION ^

 SUBSASGN Define index assignment for ahrbf objects
   Allows modification of certain parameters of the net after
   creation of the net.
   Currently modifiable parameters are:
       alpha, beta
   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 net = subsasgn(net,index,val)
0002 % SUBSASGN Define index assignment for ahrbf objects
0003 %   Allows modification of certain parameters of the net after
0004 %   creation of the net.
0005 %   Currently modifiable parameters are:
0006 %       alpha, beta
0007 %   See class documentation for Matlab for explanation of this
0008 %   function
0009 
0010 % Satrajit Ghosh, SpeechLab, Boston University. (c)2001
0011 % $Header: /mnt/localhd/cvsdir/MODELLING/NEWDIVA/@ahrbf/subsasgn.m,v 1.1.1.1 2006/10/06 18:20:23 brumberg Exp $
0012 
0013 % $NoKeywords: $
0014 
0015 switch index.type
0016 case '()'
0017     error('Array indexing not supported by operator objects')
0018 case '.'
0019     switch index.subs
0020     case 'alpha'
0021         if isnumeric(val),
0022             net.alpha = val;
0023         else,
0024             error('alpha value must be a numeric');
0025         end
0026     case 'beta'
0027         if isnumeric(val),
0028             net.beta = val;
0029         else,
0030             error('beta value must be a numeric');
0031         end
0032     otherwise
0033         error('Invalid field name')
0034     end
0035 end
0036

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