Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
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)
P =
0
0
1
|
2 | Pass |
%%
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)
|
3 | Pass |
%%
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)
P =
0.7071
-0.7071
0
|
4 | Pass |
%%
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)
P =
NaN
NaN
NaN
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35546 Solvers
Sort a list of complex numbers based on far they are from the origin.
4326 Solvers
Find the two most distant points
1628 Solvers
Numbers with prime factors 2, 3 and 5.
166 Solvers
Arrange vector in ascending order
624 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!