Hi James,
According to the MATLAB documentation,
It is generally not feasible for the elements of a matrix(2D array) to be matrices themselves. Matrix in MATLAB contain homogeneous data. However, an alternative approach could be using a cell array to transform the current position matrix into an ideal position matrix by referring to the code below:
P = cell(4,3);
P = {0 0 0;5 0 0;2.5 4.330 0;[-5,5] 10 0}
Please refer to the following cell array documentation:
Hope this helps!
Thank You
Maneet Bagga