how to know 'y' values of points when we only know 'x' values?
2 次查看(过去 30 天)
显示 更早的评论
I know the coordinates of red points and slope of red line.
the black line is perpendicular to red line.
I know 'x' values(x1,x2)
but I don't know 'y' values, so I want to know 'y' values(y1,y2).
is there a fuction or a formular?
thanks
0 个评论
回答(1 个)
AndresVar
2022-5-31
yes a perpendicular line has a negative inverse slope
so if red lines has slope m1=(dy/dx)_red, then the black line has slope m2=-1/m1=(dy/dx)_black
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!