Problem 2083. Independent direction vectors of a plane
Given the equation of a plan of the form ax+by+cz=d, return 2 independent direction vectors which could e.g. be used to determine a parametric equation.
Solution Stats
Problem Comments
-
10 Comments
Show
7 older comments
Basil Imoberdorf
on 28 Oct 2024
The test suite doesn't work for me?!
I think it should be -2d not only -d:
assert(abs(sum([a b c].*(v1+[0 0 d/c]))-2d)<1e-4)
And it could be way more readable:
assert(abs(a*v1(1) + b*v1(2) + c*v1(3) - d) < 1e-4)
How did some people solve this?!?
Aditya
on 30 Oct 2024
yup
Parth
on 6 Feb 2025 at 8:33
nice
Solution Comments
Show commentsProblem Recent Solvers21
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6357 Solvers
-
Read a column of numbers and interpolate missing data
2314 Solvers
-
521 Solvers
-
366 Solvers
-
Set the array elements whose value is 13 to 0
1377 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!