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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Find the shortest distance between the plane 3*x1+4*x2+x3=1 and the point (-1,1,1)
0 comentarios
Respuestas (2)
Bruno Luong
el 16 de Dic. de 2018
Editada: Bruno Luong
el 16 de Dic. de 2018
n = [3;4;1];
d = abs((n'*[-1;1;1]-1)/sqrt(n'*n))
gives:
d =
0.1961
2 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!