Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 191877

Submitted on 16 Jan 2013

Incorrect

32Size
Leading solution size is 12.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
t=[7 30 15];
t_correct = [43.625  91.5];
assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
Error: Output argument "ans" (and maybe others) not assigned during call to "/users/msssytem8/clockHandAngDifferences.m>clockHandAngDifferences".
2
Fail
 
%%
t=[11 59 59];
t_correct = [0.0916666666666401 5.89999999999998];
assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
Error: Output argument "ans" (and maybe others) not assigned during call to "/users/msssytem8/clockHandAngDifferences.m>clockHandAngDifferences".
3
Fail
 
%%
t=[3 45 50];
t_correct = [-162.083333333333 -25];
assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
Error: Output argument "ans" (and maybe others) not assigned during call to "/users/msssytem8/clockHandAngDifferences.m>clockHandAngDifferences".