Re: [OctDev] Problems with demo.m

2010-10-21 Thread c.
On 21 Oct 2010, at 16:01, JuanPi wrote: > Hi c. > > Thanks for the code I will test and learn more about the msh package. > > For sure I will contribute my code, I was thinking of making a > package, but if it can be merged to an existing one, that is great. > > JPi Sounds great! Thanks! c. ---

Re: [OctDev] Problems with demo.m

2010-10-21 Thread JuanPi
Hi c. Thanks for the code I will test and learn more about the msh package. For sure I will contribute my code, I was thinking of making a package, but if it can be merged to an existing one, that is great. JPi On Thu, Oct 21, 2010 at 3:57 PM, c. wrote: > > On 21 Oct 2010, at 15:20, JuanPi wr

Re: [OctDev] Problems with demo.m

2010-10-21 Thread c.
On 21 Oct 2010, at 15:20, JuanPi wrote: > Hi c. > > It may be that there is a difference. I cannot fully understand the > way you use the ismember function. To me, it looks you are comparing a > matrix with integer numbers (the triangle vertices) against a logical > matrix with 1's where the vert

Re: [OctDev] Problems with demo.m

2010-10-21 Thread JuanPi
Hi c. It may be that there is a difference. I cannot fully understand the way you use the ismember function. To me, it looks you are comparing a matrix with integer numbers (the triangle vertices) against a logical matrix with 1's where the vertex of a triangle is inside the region or in the borde

Re: [OctDev] Problems with demo.m

2010-10-21 Thread c.
Hi, On 21 Oct 2010, at 13:25, JuanPi wrote: > Hi c. > > Thanks a lot for the pointer. Indeed I am working with triangular > meshes. > > In my experience dealing with cells is very slow, so I try to avoid > them. > > I need this function to speed up queries to a mesh (maybe there is a > bette

Re: [OctDev] Problems with demo.m

2010-10-21 Thread JuanPi
Hi c. Thanks a lot for the pointer. Indeed I am working with triangular meshes. In my experience dealing with cells is very slow, so I try to avoid them. I need this function to speed up queries to a mesh (maybe there is a better solution), with a cost on memory and preprocessing. I use the poin

Re: [OctDev] Problems with demo.m

2010-10-21 Thread c.
On 21 Oct 2010, at 10:05, JuanPi wrote: > Dear all, > > I have been trying to documet my functions with some examples. I am > using the format described in >> help demo > > I have a function point2triag that works perfectly when I call it form > Octave's terminal, but when I use >> demo(point2tri

Re: [OctDev] Problems with demo.m

2010-10-21 Thread JuanPi
I apologize for such a newbie error. Yes, it works like that. Thank you very much! On Thu, Oct 21, 2010 at 10:12 AM, Søren Hauberg wrote: > tor, 21 10 2010 kl. 10:05 +0200, skrev JuanPi: >> I have been trying to documet my functions with some examples. I am >> using the format described in >> >

Re: [OctDev] Problems with demo.m

2010-10-21 Thread Søren Hauberg
tor, 21 10 2010 kl. 10:05 +0200, skrev JuanPi: > I have been trying to documet my functions with some examples. I am > using the format described in > > help demo > > I have a function point2triag that works perfectly when I call it form > Octave's terminal, but when I use > > demo(point2triag) S

[OctDev] Problems with demo.m

2010-10-21 Thread JuanPi
Dear all, I have been trying to documet my functions with some examples. I am using the format described in > help demo I have a function point2triag that works perfectly when I call it form Octave's terminal, but when I use > demo(point2triag) I am getting an error of undefined elements in the b