ISUNIQ

function isuniq(array)
168 Downloads
Updated 11 Jul 2012

View License

Returns a value of 1 if the input 'array' has all distinct/unique elements (integers) otherwise the function returns a 0.
The input vector can be 1-D or 2-D vector.

Cite As

Abhinava Kundu (2024). ISUNIQ (https://www.mathworks.com/matlabcentral/fileexchange/37441-isuniq), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

The values returned by the function is a either double 1 or double 0, not char '1' or '0'. It was a wrong description.

1.0.0.0