Find distance between point (1,3,1) and plane 3(x-2)+2(y-1)-3(z-1)=0
1 次查看(过去 30 天)
显示 更早的评论
can't seem to find the commands for this.
0 个评论
采纳的回答
Andrei Bobrov
2012-8-6
fp = @(x)(x(:).' - [2, 1, 1])*[3;2;-3]; % your plane
x0 = [1,3,1]; % your point
d = fp(x0)/norm([3;2;-3]) ; % your distance
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!