MATLAB: Indexing of cell array containing class

cell arraysstruct

It's possible to index property of class that it's in cell array. If i have a class with a property value and i have a cell array that containig one instances of class for each cell there is a way to do (like a struct):
{cell.value} or [cell.value]

Best Answer

I tried this. It looks better to construct an array of objects, not a cell array of objects.
a=[timer,timer]
a.Period
c={timer,timer}
c{1}.Period
c.Period