Closed Universe

版本 1.1 (5.6 KB) 作者: Giampiero Campa
Wraps the input vector into a given hypercuboid
2.1K 次下载
更新时间 2023/5/20


Wraps the input vector into a given hypercuboid

View Closed Universe on File Exchange

Open in MATLAB Online

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.


Giampiero Campa (2024). Closed Universe (, GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R11.1
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Simulink 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

See release notes for this release on GitHub:

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库