Re: [julia-users] Cell indexing

2014-09-18 Thread John Myles White
Hi Nils, Try something like: A = Array(Any, 10) for i in 1:10 A[i] = randn(1, 10) end On Sep 18, 2014, at 6:47 AM, nils.gu...@gmail.com wrote: > I'm sure this is an extremely trivial question, but I can't seem to find an > answer anywhere. I'm trying to store a couple of matrices of di

[julia-users] Cell indexing

2014-09-18 Thread nils . gudat
I'm sure this is an extremely trivial question, but I can't seem to find an answer anywhere. I'm trying to store a couple of matrices of different size in a cell object. In Matlab, I'd do the following: > A = cell(1, 10); > for i = 1:10 > A{i} = matrix(:, :, i); > end However, I can't figur