"invalid assignment location" error

You can’t assign like that. If you posted more of the error, it would’ve said that’s the line where you assigned incorrectly. That’s a pretty understandable error?

BTW, Julia doesn’t have (or need) cell. Julia is not MATLAB (nor would it ever want to be, given how limited MATLAB is!). You may want to read:

http://docs.julialang.org/en/release-0.4/manual/noteworthy-differences/#noteworthy-differences-from-matlab