MATLAB: How to convert more column vector into cell array

convert column vector to cell array

Hi
I want to use my imported data for NARX model. Because I want to train my network with two or more vsriables, I have to have a cell array format like this [8,875836;1] [11,025640;1] [9,46135;1] My question is how can I convert more variables to this format?
Thanks, Roland

Best Answer

Hi Roland:
It's me again...
x = reshape(1:10,2,5);
y = num2cell(x,[1 5]);
enjoy !.
Best regards.