Inserting a row and moving other rows down
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Liam Sullivan
il 29 Gen 2020
Commentato: Liam Sullivan
il 29 Gen 2020
I am trying to insert a row of ones as the new 2nd row to my matrix, but i want ot move the other rows down. My matrix is defined as A =
3 7 6 0
8 2 5 0
0 1 9 0
0 Commenti
Risposta accettata
Ajay Kumar
il 29 Gen 2020
Modificato: Ajay Kumar
il 29 Gen 2020
A = [A(1,:);[1,1,1,1];A(2,:);A(3,:)]
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB 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!