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 figure out how to access the cell array in Julia:
> A = cell(1, 10)
> A
1x10 Array{Any,2}:
#undef #undef #undef #undef #undef #undef #undef #undef #undef #undef
#undef
>
> A[1]
access to undefined reference
> A[1, 1]
access to undefined reference
> A{1}
type: instantiate type: expected TypeConstructor, got Array{Any, 2}
Apologies for posting such a basic question, but I haven't been able to figure
this out even after reading
http://julia.readthedocs.org/en/latest/manual/arrays/