This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 1] ;
y_correct = 'F0 E1';
assert(isequal(bin2hex(x),y_correct));
|
2 | Pass |
x = ones(1,80);
y_correct = 'FF FF FF FF FF FF FF FF FF FF';
assert(isequal(bin2hex(x),y_correct));
|
3 | Pass |
x = zeros(1,8);
y_correct = '00';
assert(isequal(bin2hex(x),y_correct));
|
4 | Pass |
x = '1 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 1 1 1 0 0 0 1 0 1 0 0 1 1 0 1 0';
y_correct = '9E 6B E2 9A';
assert(isequal(bin2hex(x),y_correct));
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13055 Solvers
Back to basics 4 - Search Path
322 Solvers
Make a random, non-repeating vector.
2809 Solvers
372 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!