Top "Cell-array" questions

In MATLAB cell arrays are a built-in container class allowing for the storage of different types of data in each "cell" of the array.

Split a string cell array based upon a delimiter

I have a string cellarray something like this 12:34 13:45 12:45 Now I want to split this cell array into two with values …

matlab cell-array
How can I access all field elements of a structure array nested in a cell array in MATLAB?

Here's code that creates an example cell array for this question: mycell = cell([5,1]); for i = 1 : size(mycell) mystruct = struct(); mycell{…

matlab struct cell-array
How does one concatenate cell arrays that are part of a cell array in MATLAB?

I have a cell array allData which is Nx1. Each cell contains a structure with a names property (the name …

matlab concatenation cell-array
MATLAB: index a cell array with cell array of arrays and return a cell array

Say I have a cell array of (n X 1) vectors, A, and a cell array of vectors containing indices into …

matlab indexing cell-array
How can I accumulate cells of different lengths into a matrix in MATLAB?

So, I have a cell-array of 1xN vectors of different lengths. I want to append them into a matrix so …

matlab matrix cell-array
Calling function with varying number of parameters in Matlab

I am using symbolic toolbox to generate a matlab function. But the number of input to the generated function is …

matlab parameter-passing cell-array
"Flattening" a cell array

I have created a function which takes vectors for input variables and returns a cell array for each set of …

arrays matlab cell-array multidimensional-array
How do I assign an empty matrix to elements of a cell array in MATLAB?

I want to manipulate a cell array and make certain indices of the cell array contain the empty matrix []. I …

matlab indexing cell-array
How can I divide a matrix into unequally-sized submatrices?

I am wondering if it is possible to use the mat2cell function to divide an MxN matrix into 10 submatrices …

matlab matrix cell-array