Cody

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

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

80.65% Correct | 19.35% Incorrect
Last solution submitted on Sep 09, 2016

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more