This should be quite straightforward but at 2a.m. my brains are not working 100%. ;)
I has exactly the same idea!!
but on the second line I used directly the logical indexing... ;-)
What is the distance from point P(x,y) to the line Ax + By + C = 0?
280 Solvers
87 Solvers
244 Solvers
5344 Solvers
5466 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!