Text-only
Table of Contents (
frame
/
no frame
)
(7) Matlab Cell Arrays
Cell Arrays
A cell array is a general purpose matrix
Each of the elements can contain data of a different type, size and dimension
Cell arrays are created using the
cell
command or by using curly braces
>> cell_name{row,col} = data;
Storage is allocated dynamically
cellplot shows a graphical depiction of a cell array
Try:
>>
A= {rand(2,2,2), ' February', 10.28}
A =
[2x2x2 double] 'February', [10.2800]
B{1,1}=1:8;
B{1,2}=strvcat('Monday','Tuesday','Wednesday','Thursday');
B{2,2}=A;
B{1,1}
A{1,1}(2,:,1)
cellplot(B)
Cell_Arrys.src last modified Oct 17, 2007
Introduction
Table of Contents
(
frame
/
no frame
)
Printable
(single file)
© Dartmouth College