Be the first to rate this file! 7 downloads (last 30 days) File Size: 4.68 KB File ID: #9096

Closed Universe

by Giampiero Campa

 

20 Nov 2005 (Updated 21 Nov 2005)

Code covered by the BSD License  

Wraps the input vector into a given hypercuboid

Download Now | Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Giampiero Campa 22 Oct 2008 08:07:12
wrap Giampiero Campa 22 Oct 2008 08:07:12
wrapper Giampiero Campa 22 Oct 2008 08:07:12
rem Giampiero Campa 22 Oct 2008 08:07:12
mod Giampiero Campa 22 Oct 2008 08:07:12
limits Giampiero Campa 22 Oct 2008 08:07:12
hypercube Giampiero Campa 22 Oct 2008 08:07:12
virtual reality Giampiero Campa 22 Oct 2008 08:07:12
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com