Matlab删除cell数组中全为NaN的行和列
2014-01-14 16:28
1101 查看
b ={1 1 1 1 NaN; 1 1 NaN NaN NaN; NaN NaN NaN NaN NaN}; %%删除全为NaN的列 b(:,find(all(cellfun(@(x) isnan(x),b))))=[]; %%删除全为NaN的行 b(find(all(cellfun(@(x) isnan(x),b),2)),:)=[];
相关文章推荐
- Matlab中删除cell数组中的空元素
- MATLAB访问cell数组的数据(大小括号的区别)
- MATLAB中cell数组的是是非非
- matlab 判断cell数组里是否存在一个字符串
- matlab的cell数组
- MATLAB访问cell数组的数据(大小括号的区别)
- matlab中cell数组的全面介绍
- 如何将matlab中cell数组保存为可视化的文件
- matlab cell数组的用法
- MATLAB Cell数组
- MATLAB中cell数组的是是非非
- MATLAB中cell数组的全面介绍
- Matlab中cell数组的使用
- matlab中元胞数组cell元素的表示方法
- Matlab删除包含NaN的行
- 二、Matlab 之 cell数组
- MATLAB Cell数组
- 转载--matlabcell中元素的删除
- matlab cell类型数组存至txt文件
- MATLAB中cell数组的是是非非