Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Access to float coordinates in a 3D matrix
Date: Mon, 03 Dec 2012 08:28:40 -0600
Organization: Aioe.org NNTP Server
Lines: 23
Message-ID: <k9icul$bed$1@speranza.aioe.org>
References: <k9i87n$inl$1@newscl01ah.mathworks.com> <k9i8s3$vp5$1@speranza.aioe.org> <k9i9ir$nki$1@newscl01ah.mathworks.com> <k9iaid$518$1@speranza.aioe.org> <k9ibtr$3aq$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: d9rkuHWV+LYy/jluNrFC/w.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:784051

On 12/3/2012 8:11 AM, Javier wrote:

>>
> This are the first values for x: x(1),x(2) and x(3):
>3,54551732809566	3,63234837121917	3,71917941434267	3.
>
> They are floating points because I have a decimal resolution. If for example
>I want to acces Structures (x(1),y(1),z(1)), I can't.
>

what exactly is your x above? is it a matrix? struct array?
cell? you show values with a "," in it, so confusing to guess
what you have.

You have to start with describing the data stucture your data
is in. Be clear what is it. If it is a matrix of 3 columns,
each column for a coordinates, then writing

x(i,:)  gives you the 3 coordinates in the i'th row as a vector.

--Nasser