CropPURPOSEForces a state to be in a given continuous sub-space.
SYNOPSISfunction sOut=Crop(CS,s)
DESCRIPTIONForces a state to be in a given continuous sub-space. Crops the given state 's' with the boundary of the given continuous space for all dimensions. CROSS-REFERENCE INFORMATIONThis function calls: This function is called by:
SOURCE CODE0001 function sOut=Crop(CS,s) 0002 % Forces a state to be in a given continuous sub-space. 0003 % 0004 % Crops the given state 's' with the boundary of the given continuous 0005 % space for all dimensions. 0006 0007 sOut=min(CS.max,max(CS.min,s)); 0008 |