Prev: Hola mundo
Next: Urgent Help Needed(Excel)
From: James on 9 Apr 2010 03:36 Hi All, I'm trying to update my code for future the future. I have my own triangulation source that returns the connections TRI for the points X,Y. In the past I used tsearch to find the triangles that contained the points. My problem now with 2010a is: TSEARCH will be removed in a future release. Use DelaunayTri/pointLocation instead. The same goes for DSEARCH. I'm relatively new to OOP in MATLAB. I tried the following: >> TR = DelaunayTri(); >> TR.X = [X Y]; >> TR.triangulation = TRI; ??? Error using ==> subsasgn Cannot assign values to the Triangulation. I take it this means that triangulation is private, that is I can only get its value. I noticed that as soon as I assigned the points TR.X, the triangulation is performed. But I do not want this triangulation, I want my own. At this time, all I really need is the pointLocation method of DelaunayTri. I tried using TriRep, but it does not include all of the mehtods from DelaunayTri, especially pointLocation. Is it just me, or is MATLAB just starting to get way to restrictive and more complicated than it really needs to be? Any help would be appreciated, as I found the MATLAB documentation not very helpful. Thanks Rob
|
Pages: 1 Prev: Hola mundo Next: Urgent Help Needed(Excel) |