Delete Rows with a specific condition
显示 更早的评论
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
采纳的回答
更多回答(1 个)
Andrei Bobrov
2013-10-2
编辑:Andrei Bobrov
2013-10-2
out = x(all(x(:,3:end),2),:);
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!