Cody

Solution 1223462

Submitted on 1 Jul 2017
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
nocheat = isempty(regexp(evalc('type align_frame'),'(eval|regexprep|inline|str2func)')); x = {[1 0 0],'zyx'}; y_correct = [0;0;1]; assert(isequal(align_frame(x{:}),y_correct) && nocheat)

Assertion failed.

2   Fail
nocheat = isempty(regexp(evalc('type align_frame'),'(eval|regexprep|inline|str2func)')); x = {1:3,'XYZ'}; y_correct = [0.963624111659432 -0.148249863332220 -0.222374794998330].'; assert(isequal(align_frame(x{:}),y_correct) && nocheat)

Assertion failed.

3   Fail
nocheat = isempty(regexp(evalc('type align_frame'),'(eval|regexprep|inline|str2func)')); x = {[1;1;0],'xy'}; y_correct = null([1 0;1 0;0 1].'); assert(isequal(align_frame(x{:}),y_correct) && nocheat)

Assertion failed.

4   Fail
nocheat = isempty(regexp(evalc('type align_frame'),'(eval|regexprep|inline|str2func)')); x = {[0 0 -2],'Z'}; y_correct = []; assert(isequal(align_frame(x{:}),y_correct) && nocheat)

Assertion failed.