Cody

Solution 1021988

Submitted on 18 Oct 2016 by goc3
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = 10; y_correct = 245; assert(isequal(your_fcn_name(x),y_correct))

b = 1×8 logical array 1 1 1 1 0 1 0 1 b = 11110101 d = 245

2   Pass
x = 245; y_correct = 10; assert(isequal(your_fcn_name(x),y_correct))

b = 1×8 logical array 0 0 0 0 1 0 1 0 b = 00001010 d = 10

3   Pass
x = 20; y_correct = 235; assert(isequal(your_fcn_name(x),y_correct))

b = 1×8 logical array 1 1 1 0 1 0 1 1 b = 11101011 d = 235

4   Pass
x = 235; y_correct = 20; assert(isequal(your_fcn_name(x),y_correct))

b = 1×8 logical array 0 0 0 1 0 1 0 0 b = 00010100 d = 20

Suggested Problems

More from this Author25