Let\'s say I have two arrays of the same size:
X = [1 2 3 4 ...] Y = [1 2 3 4 ...]
But what I want is a struct:
S(1) =
use struct and cells
struct
S = struct('X', num2cell(X), 'Y', num2cell(Y) );