How I can offset the airfoil geometry inward and outward?
3 次查看(过去 30 天)
显示 更早的评论
Airfoil geometry is made of [x,y] values.
0 个评论
采纳的回答
James Clinton
2018-7-26
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.
2 个评论
James Clinton
2018-8-7
Concatenate x and y vectors together to create an array then use unique to get rid of duplicate points. For example, if x and y are column vectors:
M = [x y];
A = unique(M,rows);
xnew = A(:,1); ynew = A(:,2);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Airfoil tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!