BoundNDArray(array,​lb,ub)

This function bounds an array of any dimension (N-D) between minimum and maximum values.

Vous suivez désormais cette soumission

This function bounds an array of any dimension (N-D) between minimum and maximum values without using for loops.
In optimization for example, bounding arrays can be common bottlenecks so a fast approach (no for loops) is advantageous.
It achieves the same result as http://au.mathworks.com/matlabcentral/fileexchange/43251-bound-values-of-an-array but without for loops and error checking which makes it faster.

Citation pour cette source

JMP Phillips (2026). BoundNDArray(array,lb,ub) (https://fr.mathworks.com/matlabcentral/fileexchange/59517-boundndarray-array-lb-ub), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : Bound Values of an array

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0