pointLocation / DelaunayTri - custom tri input

Hello!
I am needing a very fast version of DelaunayTri + pointLocation. In fact, I am replacing:
t = tsearch(x,y,tri,xi,yi);
I have found that I can replace it with
DT = DelaunayTri(x,y);
t = pointLocation(DT,[xi yi]);
But I want a custom tri loaded from an existing saved file instead of calculating it with DelaunayTri. I am unable to load this custom tri into DT.Triangulation - MatLab won't let me edit the structure.
??? Error using ==> subsasgn
Cannot assign values to the Triangulation.
If I try to create my own structure, it tells me
??? Undefined function or method 'pointLocation' for input arguments of type
'struct'.
Is there any way to do this?
Thanks,
Joseph

댓글 수: 1

Tale Saeedi
Tale Saeedi 2018년 8월 27일
tanx a lot, was helpful. just make x and y column vector

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

답변 (1개)

Joseph
Joseph 2014년 2월 10일

0 개 추천

Anyone? Guess it can't be done then...

카테고리

도움말 센터File Exchange에서 Triangulations에 대해 자세히 알아보기

제품

질문:

2014년 2월 7일

댓글:

2018년 8월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by