once

detects if there is exactly one true value in an array.
4 Downloads
Updated 24 Jan 2023

View License

detects if there is exactly one true value in an array.
Like ANY which detects one or more occurences of true.

Cite As

Stefan Schuberth (2026). once (https://uk.mathworks.com/matlabcentral/fileexchange/123850-once), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0