short answer is hvcat((2,2), A...) but make certain it is doing the concatenation in the order you really want, else call it out specifically as hvcat((2,2), A[2,1], A[1,1], A[2,2], A[1,2]) for example.
On Saturday, September 20, 2014 8:34:32 PM UTC-7, Staro Pickle wrote: > > I define a matrix using cell, like: > A = cell(2,2) > b = ones(2,2) > A[1,1] = b > A[1,2] = b > A[2,1] = b > A[2,2] = b > > Then I want to make A a 4*4 2-D array: > 1.0 1.0 1.0 1.0 > 1.0 1.0 1.0 1.0 > 1.0 1.0 1.0 1.0 > 1.0 1.0 1.0 1.0 > > How to do this? > > >
