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)
  
       Mostra commenti meno recenti
    
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.
0 Commenti
Risposta accettata
  Image Analyst
      
      
 il 22 Lug 2014
        rowToDelete = 42; % or whatever....
yourMatrix(rowToDelete, :) = [];
5 Commenti
  Triveni
      
 il 9 Mar 2016
				 rowToDelete = [42 5 6 7]; % or whatever....
yourMatrix(rowToDelete, :) = [];
should also work...
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Matrix Indexing in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



