File Exchange

image thumbnail

Closed Universe

version 1.0.0.0 (4.68 KB) by Giampiero Campa
Wraps the input vector into a given hypercuboid

0 Downloads

Updated 21 Nov 2005

View License

When the input is inside the n-dimensional box defined by the two limiting vectors Min and Max, then the output is equal to the input. When the input exceeds a limit along one dimension, the output reappears "on the other side" of the box, along the same dimension.

This block is especially useful if you want to keep the evolution of a given variable in a certain range, for example, when displaying images with the virtual reality toolbox, it is better to keep the object positions within certain limits, otherwise numerical problems may prevent a correct visualization.

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R11.1
Compatible with any release
Platform Compatibility
Windows macOS Linux