Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
u = [0.5 0.5 0];;
v = [1 0 0];
angle_in_degrees = vector2angle(u,v)
assert(strcmp(num2str(angle_in_degrees),'45'))
ans =
45
angle_in_degrees =
45
|
2 | Pass |
%% first new test added 08-June-2012
u = [0 0 1];
v = [1 0 0];
angle_in_degrees = vector2angle(u,v)
assert(strcmp(num2str(angle_in_degrees),'90'))
ans =
90
angle_in_degrees =
90
|
3 | Pass |
%% second new test
u = [0 0.8 1];
v = [1 0.3 0];
angle_in_degrees = vector2angle(u,v)
assert(strcmp(num2str(round(angle_in_degrees)),'80'))
ans =
79.6591
angle_in_degrees =
79.6591
|
Split a string into chunks of specified length
475 Solvers
364 Solvers
302 Solvers
360 Solvers
Number of Even Elements in Fibonacci Sequence
665 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!