NewMatrix = YourMatrix(YourMatrix(:,1)~=0, :);
How to delete specific rows in a matrix?
1 次查看(过去 30 天)
显示 更早的评论
Hello all, I have a matrix including two columns and some rows. I have numbers and zeros in the first column and numbers and empty slots in the second column.How can I delete zeros in the first column and their corresponding empty slots in the second column? Thank you in advance.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!