Cody

Problem 2083. Independent direction vectors of a plane

Solution 2796577

Submitted on 6 Aug 2020 by Rafael S.T. Vieira
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   Pass
a=1; b=1; c=1; d=1234; [v1,v2] = directionvectors(a,b,c,d); assert(sum([a b c].*(v1+[0 0 d/c]))==d); assert(sum([a b c].*(v2+[0 0 d/c]))==d); assert(dot(v1,v2)~=0);

2   Pass
a=0; b=5; c=7; d=1234; [v1,v2] = directionvectors(a,b,c,d); assert(sum([a b c].*(v1+[0 0 d/c]))==d); assert(sum([a b c].*(v2+[0 0 d/c]))==d); assert(dot(v1,v2)~=0);

Suggested Problems

More from this Author10

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!