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 次查看(过去 30 天)
显示 更早的评论
Find the shortest distance between the plane 3*x1+4*x2+x3=1 and the point (-1,1,1)
0 个评论
回答(2 个)
Bruno Luong
2018-12-16
编辑:Bruno Luong
2018-12-16
n = [3;4;1];
d = abs((n'*[-1;1;1]-1)/sqrt(n'*n))
gives:
d =
0.1961
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Math 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!