Let's say I have two simple vectors;
vec1=[1,2,3];
vec2=[4,5,6];
Now I make a cell array from them.
cellArray1={vec1,vec2}
If I want to create a 2x3 numerical array, it is simple.
[vec1;vec2]
%or
[cellArray1{1};cellArray{2}]
However, to make a 2x3 cell array from the above, it is not behaving as expected.
{vec1(1,:);vex2(1,:)}
{cellArray1{1};cellArray1{2}}
{cellArray1{1}(1,:),cellArray1(1,:)}
None give me a 2x3 cell array. Why is that so and how to make a 2x3 cell array containing only the double values in each of its entries in a very formal and efficient way. I don't think using cell2mat or writing a code to write another dot m file with {~,~,~;~,~,~} which running the resulting new file creates the cell array of interest, are good practices.