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

7 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Image Analyst
Image Analyst il 22 Lug 2014
rowToDelete = 42; % or whatever....
yourMatrix(rowToDelete, :) = [];
  5 Commenti

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by