MATLAB: How to offset the airfoil geometry inward and outward
aeronauticalcurvegeometrypropeller
Airfoil geometry is made of [x,y] values.
Best Answer
It sounds like you just need "z" dimension values. Find the number of points using size(), then you can put the airfoil at a constant z-value by setting all z-values the same.
To offset in the x-direction, just add or subtract a constant from all x-values. Similarly, to offset in the y-direction, a constant must be added or subtracted from the y-values.
If you have the image processing toolbox, you can use the xx, yy, xx2, yy2 coordinates as inputs to poly2mask(). Then you can use regionprops() to find the centroid of the mask.
Best Answer