Cody

Problem 614. edge detection

Solution 766988

Submitted on 25 Oct 2015
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
%% x=[1 1 1 2 2 2 1 1 2 1 1]; str='up' y_correct = [4 9]; assert(isequal(your_fcn_name(x,str),y_correct))

str = up

Output argument "idx" (and maybe others) not assigned during call to "your_fcn_name".

2   Fail
%% x=[1 1 1 2 2 2 1 1 2 1 1]; str='down' y_correct = [7 10]; assert(isequal(your_fcn_name(x,str),y_correct))

str = down

Output argument "idx" (and maybe others) not assigned during call to "your_fcn_name".

3   Fail
%% x=[1]; str='down' y_correct = []; assert(isequal(your_fcn_name(x,str),y_correct))

str = down y = []

Output argument "idx" (and maybe others) not assigned during call to "your_fcn_name".

Suggested Problems

Community Treasure Hunt

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

Start Hunting!