Team:Alberta/Project/Modeling/CellToMatrix

From 2009.igem.org

%converts a vector of cells (each cell containing a vector of genes) into one
%matrix for easy copy and paste into excel from matlab

function NewMatrix = CellToMatrix(CellArray)

for h=1:length(CellArray)
    for g=1:length(CellArray{h})
         NewMatrix(g,h) = CellArray{h}(g);
    end
end