You can use the cell2mat
function to convert a cell array to a normal array. Here's the syntax:
main.m271 chars8 lines
Note that cell2mat
only works if all the cells in the array are the same size (i.e., contain the same number of elements). If your cells are not the same size, you can use nested for loop to copy the elements of cell array to a normal cell.
main.m238 chars14 lines
gistlibby LogSnag