|
"omegayen " <omegayen@ameritech.net> wrote in message <ibs3nk$ljb$1@fred.mathworks.com>...
> Hi,
>
> So if I have a vector of type double I can convert it into a matrix of the size of my specification one row at a time using
>
> mat = vec2mat(vec,matcol)
>
> if instead I have a vector of type cell (so a cell array) how do I do I accomplish the same transformation into a matrix one row at a time?
>
> note my vector converts into a square matrix so no trailing zeros are needed.
How about:
reshape(Your_cell,matcol,[]).'
where matcol is the same as matcol in vec2mat?
|