Delete rows or column with NaN for a cell array
7 次查看(过去 30 天)
显示 更早的评论
I really thanks in advance any help. How can I delete NaN's of column from the cell attached as example file here.
Thanks
0 个评论
采纳的回答
Bhaskar R
2020-2-17
nan_loc = cellfun(@(x)any(isnan(x)), P_QC, 'UniformOutput', false);
for ii=1:length(P_QC)
P_QC{ii}(:,nan_loc{ii}) = [];
end
4 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!