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??

25 views (last 30 days)
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.

Accepted Answer

Image Analyst
Image Analyst on 22 Jul 2014
rowToDelete = 42; % or whatever....
yourMatrix(rowToDelete, :) = [];
  5 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!