I'm trying to follow the code posted by a user on Stack Exchange and I'm having trouble with an allocation of a matrix. The code is:
dim = 3;
XX = Table[X[[i]], {i, dim}];
and it's supposed to create an array of:
{X[[1]], X[[2]], X[[3]]}
And it does, but I get the following warnings:
Part::partd: Part specification X[[1]] is longer than depth of object. >>
Part::partd: Part specification X[[2]] is longer than depth of object. >>
Part::partd: Part specification X[[3]] is longer than depth of object. >>
General::stop: Further output of Part::partd will be suppressed during this calculation. >>
What's the proper way to allocate this matrix without the warnings?
Xhas no parts, you can not useParton it. – Αλέξανδρος Ζεγγ Sep 05 '18 at 02:55