Triangle Interpolation: Find Exact Value

조회 수: 2 (최근 30일)
Riccardo Mari
Riccardo Mari 2022년 11월 4일
댓글: Riccardo Mari 2022년 11월 7일
Hi everyone,
I have a triangle with vertices:
coordinates=[0.397500000000000,0.402500000000000,0.400000000000000;0.615285115251741,0.615285115251741,0.619615242270663];
and i know the temperature on each of them:
temperature=[1.228022937634222e+02;1.228022937634234e+02;6.798453477959490e+02];
I would like to find the coordinates of some points (equally spaced including the two on the sides) that have a fixed value of temperature. Let's suppose:
Tfixed=650;
Is there a way to do this?
The same thing must be done on an arbitraty traingle with vertices that could not be symmetric.
Thanks in advance for the reply.

채택된 답변

Daniel Neubauer
Daniel Neubauer 2022년 11월 4일
your 2D-triangle with temperature can be treated as a 3d plane defined by the three points in [x y z] such as
vertex=[x y t]
then calculate the equation for the resulting 3d plane and set equal to z=Tfixed.
the resulting line is the equation of all points having the desired temperature.
  댓글 수: 2
John D'Errico
John D'Errico 2022년 11월 4일
... and the intersection of that line with the edges of the triangle will produce the desired interpolated points along the edges.
Riccardo Mari
Riccardo Mari 2022년 11월 7일
Thank you both for the idea! That worked perfectly.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by