Cody

Solution 158184

Submitted on 6 Nov 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% filetext = fileread('your_fcn_name.m') assert(isempty(strfind(filetext, 'unique'))) assert(isempty(strfind(filetext, 'stable'))) A = [9 2 9 5]; assert(isequal(your_fcn_name(A),unique(A,'stable')))
Error: Assertion failed.
2   Pass
%% x = [42 1 1 1 42 17 17]; assert(isequal(your_fcn_name(x),unique(x,'stable')))
y = 42 1 17
3   Pass
%% x = rand(1,25); assert(isequal(your_fcn_name(x),unique(x,'stable')))
y = Columns 1 through 6 0.8147 0.9058 0.1270 0.9134 0.6324 0.0975 Columns 7 through 12 0.2785 0.5469 0.9575 0.9649 0.1576 0.9706 Columns 13 through 18 0.9572 0.4854 0.8003 0.1419 0.4218 0.9157 Columns 19 through 24 0.7922 0.9595 0.6557 0.0357 0.8491 0.9340 Column 25 0.6787