![]() |
CropPURPOSE
Forces a state to be in a given continuous sub-space.
SYNOPSIS
function sOut=Crop(CS,s)
DESCRIPTION
Forces 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 INFORMATION
This function calls:
This function is called by:
SOURCE CODE
0001 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 |