I need to find a point on a surface (given an angle relative to a starting point) where the arc length is a given value using Matlab.
Say I have a high order surface where z=f(x,y) which was been fitted from sampling points using Matlabs fit function. If I have a starting point, say a = (x_0, y_0, f(x_0,y_0)) and want to know the coordinate of a point along that surface at a user defined angle theta away in the xy plane so that the distance covered over the surface is a given value, e.g. 10mm.
I assume that what I need to do is solve this equation for the value of b, given we know a, s and function defining surface. But I'm unsure how to write this in Matlab. I'm assuming I need to use the solve function in Matlab.
Any help on how to write this in Matlab and in the most efficent form would be greatly appreciated!
(x_0, y_0)
and(x_0+cos(theta)*r, y_0+sin(theta)*r)
and that you can stop integration/summation when you have reachedr
. – Matthias W.