Unique: Speed Enhancement for uint(8,16,32) - MATLAB Cody - MATLAB Central

Problem 926. Unique: Speed Enhancement for uint(8,16,32)

Difficulty:Rate

This Speed Performance Challenge is to optimize Unique for processing uint8/uint16/uint32 variables.

Input: A (column vector of uint8/uint16/uint32)

Output: B (column vector A processed by unique "like" function)

Scoring: Cumulative time, in msec, of "unique" processing of three medium size arrays.

Examples: [5;4;3;2;2;1] returns [1;2;3;4;5], and Fast

Hint: Help Unique, Legacy, Options

Solution Stats

77.08% Correct | 22.92% Incorrect
Last Solution submitted on Oct 23, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers24

Suggested Problems

More from this Author308

Community Treasure Hunt

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

Start Hunting!
Go to top of page