Cody

Solution 1570821

Submitted on 28 Jun 2018
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
%test 2 A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); A=A(3:20,40:45); g=12; d=[ 0 4 8 12] assert(isequal(unique(image_and(A,g)),d))

d = 0 2 4 6

Output argument "out" (and maybe others) not assigned during call to "image_and".

2   Fail
%test 3 A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); g=255; d=A; assert(isequal(image_and(A,g),d))

d = 0 2 4 6

Output argument "out" (and maybe others) not assigned during call to "image_and".

3   Fail
%test 4 A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); g=0; d=0*A; assert(isequal(image_and(A,g),d))

d = 0 2 4 6

Output argument "out" (and maybe others) not assigned during call to "image_and".

Suggested Problems

More from this Author21