Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


CHINEDU
Posts:
12
Registered:
12/25/12


Re: Array of array
Posted:
Dec 28, 2012 1:05 PM


dpb <none@non.net> wrote in message <kbf3o1$n5s$1@speranza.aioe.org>... > On 12/26/2012 5:07 AM, CHINEDU wrote: > ... > > > dpb, please kindly let me know how to initialize these Array of arrays. > > a) initialize them before creating the cell array from them, or > > b) use the same multilevel addressing syntax to specify the location of > the target for the rhs in any normal Matlab assignment. > > See other note/response on more info on multilevel addressing and the > relative simplicity of the straightforward array vis a vis this solution... > >  dpb, I know I can initialize a matrix using A = zeros(20,30) how do I initialize a matrix of subarrays?
I actually want to store the positions of the center of base of cylinders in a matrix, so each element must be a subarry of 3 elements corresponding to the x, y and z coordinates.
I have already created 3 different matrices for these 3 cordinates but I think that array of array would be more straightforward to work work with.
Thanks.



