Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Replies: 10   Last Post: Dec 3, 2012 5:16 PM

 Messages: [ Previous | Next ]
 Javier Posts: 61 Registered: 4/26/11
Posted: Dec 3, 2012 8:36 AM

"Javier " <javsanzperez@gmail.com> wrote in message <k9i9ir\$nki\$1@newscl01ah.mathworks.com>...
> "Nasser M. Abbasi" wrote in message <k9i8s3\$vp5\$1@speranza.aioe.org>...
> > On 12/3/2012 7:08 AM, Javier wrote:
> > > Hi, I have several 3D lines to analyze a structure. The problem is
> > >that these coordinates aren't integer, for example 1.9 and I have the error:
> > > Subscript indices must either be real positive integers or logicals.
> > >
> > > I don't want to ceil, floor or round, cause if I do this the lines
> > >are modified, how could I access to these coordinates without changing the line?

> >
> > you seem to be using the value itself as an index.
> > use the location of the value as index. Not the value itself.
> >
> > --Nasser

>
> Thanks,
>
> I use
> x = x0 + t*dx
> y = y0 + t*dy
> z = z0 + t*dz
> with t: 0:0.1:1, and d the direction vector.
> This is the index of the coordinate isn't it?

Date Subject Author
12/3/12 Javier
12/3/12 Nasser Abbasi
12/3/12 Javier
12/3/12 Javier
12/3/12 Nasser Abbasi
12/3/12 Javier
12/3/12 Nasser Abbasi
12/3/12 dpb
12/3/12 Javier
12/3/12 dpb
12/3/12 Steven Lord