Storing 8x8 messages

flocked's icon

Hi,

I have a grid of 8x8 values that I need to save. Each of these 64 positions will have 5 different numbers. I also want to easily change e.g. position x4/y3 with 5 new values.

Which object should use? Do you have any suggestions?

Thanks!

LSka's icon

Hi flocked,
have a look at jit.cellblock

spectro's icon

Jit.cellblock is really for two dimensional data. To manage an 8x8 matrix, each with five values, you would need a cellblock with 64 rows each with five columns - or five cellblocks. If you don't really need to view (all) the data in tabular form, its probably easier to have an 8x8 jit.matrix of dimension 5 with the data type that will suit your intended values (probably type char if all your values are integers 0-255). It is also possible to read and write to a file for storage etc...