True for poins inside the discrete space.
Returns true if the given 's' is one of the valid values for the
discrete space 'DS' (i.e., it is an integer from 1 to 'dim').
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
SOURCE CODE
0001 function b=Valid(DS,s)
0002 % True for poins inside the discrete space.
0003 %
0004 % Returns true if the given 's' is one of the valid values for the
0005 % discrete space 'DS' (i.e., it is an integer from 1 to 'dim').
0006
0007 b=(s>0)&&(s<=DS.man)&&(floor(s)==s);
0008