基本用法
>> b=cell(1,3)
b =
[] [] []
>> b(1)={'CHINA'};b(2)={3};b(3)={'I love matlab'};
相关操作函数
iscell 判断数组是否为元数组 cellstr 创建字符串元胞数组
celldisp 显示元胞数组的内容 cellplot 显示元胞数组的图形描述
>> A=char('Thomas lee ','Marketing','Allison Jones','Development');
>> C=reshape(cellstr(A),2,[]);
>> iscell(C)
ans =
1
>> celldisp(C)
C{1,1} =
Thomas lee
C{2,1} =
Marketing
C{1,2} =
Allison Jones
C{2,2} =
Development
>> cellplot(C,'legend')