Can anyone solve this? Find the shortest distance between the plane 3*x1+4*x2+x3=1 and the point (-1,1,1). (optimization problem?)
1 view (last 30 days)
Show older comments
Find the shortest distance between the plane 3*x1+4*x2+x3=1 and the point (-1,1,1)
0 Comments
Answers (2)
Bruno Luong
on 16 Dec 2018
Edited: Bruno Luong
on 16 Dec 2018
n = [3;4;1];
d = abs((n'*[-1;1;1]-1)/sqrt(n'*n))
gives:
d =
0.1961
2 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!