min-non-negative
An alternative method for finding the min non-negative element in a matrix.
This function was created, as motivational reason, for the analysis of populational biosinspired optimization algorithm, where is important to automatically selects the element with minimun value from a matrix. However, for constraining reasons, it is important to avoid non-negative values. Despiste its orginal motivation, this function was built for multi-purpose applications.
The function input is a M matrix, which all the non-negative elements are changed to "nan"(Not a Number) values, then the default "min" function runs on the "non-negativeM" matrix.
Cite As
Heictor C. (2025). min-non-negative (https://github.com/Heictor/min-non-negative), GitHub. Retrieved .
Costa, Heictor Alves de Oliveira. Min-Non-Negative. MathWorks, 2024, doi:10.5281/ZENODO.11087370.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
|
