필터 지우기
필터 지우기

How I can offset the airfoil geometry inward and outward?

조회 수: 5 (최근 30일)
Prinson Chandy
Prinson Chandy 2018년 7월 26일
댓글: James Clinton 2018년 8월 7일
Airfoil geometry is made of [x,y] values.

채택된 답변

James Clinton
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
Prinson Chandy
Prinson Chandy 2018년 8월 7일
how to remove points which are overlapping
James Clinton
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 CenterFile Exchange에서 Airfoil tools에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by