'' [ 2281] [ 2520] [8]
'' [] [] ''
Run Code Online (Sandbox Code Playgroud)
像我的cell数组中的上述数据一样.如何确定第二行无效?我试过isempty(),但结果不是最佳的.
使用cellfun和all沿着列isempty如下,
>> invalidRow = all(cellfun(@isempty,C),2)
invalidRow =
0
1
Run Code Online (Sandbox Code Playgroud)