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?)
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Find the shortest distance between the plane 3*x1+4*x2+x3=1 and the point (-1,1,1)
0 Commenti
Risposte (2)
Bruno Luong
il 16 Dic 2018
Modificato: Bruno Luong
il 16 Dic 2018
n = [3;4;1];
d = abs((n'*[-1;1;1]-1)/sqrt(n'*n))
gives:
d =
0.1961
2 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!