How can I delete an entire row in a matrix and shift the rest of the matrix below the deleted row up each time I delete??

3 次查看(过去 30 天)
I want to delete an entire row and shift the remaining matrix below the deleted row up by one, each time I delete a row.

采纳的回答

Image Analyst
Image Analyst 2014-7-22
rowToDelete = 42; % or whatever....
yourMatrix(rowToDelete, :) = [];
  5 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by