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.

How to create cell-array in MATLAB and initialize all elements to the same object?

I have a matrix (call it X) that is initialized to say zero(3). I want to change the code so …

arrays matlab initialization cell-array
How can I access nested cell arrays in MATLAB?

I would like to make a nested cell array as follows: tag = {'slot1'} info = {' name' 'number' 'IDnum'} x = {…

matlab nested cell-array
Finding and filtering elements in a MATLAB cell array

I have a list (cell array) of elements with structs like this: mystruct = struct('x', 'foo', 'y', 'bar', 's', struct(…

list matlab filtering cell-array
A cell array inside a struct in Matlab - possible?

I wanted to wrap up a few variables inside a single struct, for easier input and output from functions as …

matlab struct cell-array
How can I create/process variables in a loop in MATLAB?

I need to calculate the mean, standard deviation, and other values for a number of variables and I was wondering …

matlab variables loops cell-array
How to combine vectors of different length in a cell array into matrix in MATLAB

How to efficiently combined cell array vectors with different length into a matrix, filling the vectors to max length with 0…

matlab matrix cell-array
Convert numbers to strings in a cell array in MATLAB

I have a cell array with numbers and string data. I need to convert the numbers to strings so that …

string matlab type-conversion cell-array
matlab char array to cell array

say I have an array of chars which looks like.... hello hillo hello and I would like to convert them …

matlab matrix char cell-array
How to apply cellfun (or arrayfun or structfun) with constant extra input arguments?

I want to apply a function to each element of a cell array -- so I have cellfun for that. …

matlab function arguments cell-array
Delete a cell array column

Placed simple values into the cell array for testing. model{1,1}=1;model{1,2}=2;model{1,3}=3; model{2,1}=4;model{2,2}=5;model{2,3}=6; i=2;//I want to remove …

matlab cell-array