MATLAB 帮助中心
确定输入是否为元胞数组
tf = iscell(A)
如果 A 是元胞数组,则 tf = iscell(A) 返回 1 (true)。否则,将返回 0 (false)。
A
1
true
0
false
示例
全部折叠
创建一个元胞数组。
A = {1,2,3; 'text',rand(5,10,2),{11; 22; 33}}
A=2×3 cell array {[ 1]} {[ 2]} {[ 3]} {'text'} {5×10×2 double} {3×1 cell}
确定 A 是否为元胞数组。
tf = logical 1
创建一个数值数组。使用 iscell 函数对其进行测试。
iscell
B = rand(2,5)
B = 2×5 0.1622 0.3112 0.1656 0.2630 0.6892 0.7943 0.5285 0.6020 0.6541 0.7482
tf = iscell(B)
tf = logical 0
输入数组,指定为数组。输入数组 A 可以包含任何数据类型。
全部展开
backgroundPool
ThreadPool
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
此函数完全支持分布式数组。有关详细信息,请参阅使用分布式数组运行 MATLAB 函数 (Parallel Computing Toolbox)。
在 R2006a 之前推出
cell | istable | iscellstr | isstruct | isnumeric | islogical | isobject | isa
cell
istable
iscellstr
isstruct
isnumeric
islogical
isobject
isa
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处