how can i add row to matrix
Afficher commentaires plus anciens
like a =
0 2 3
1 1 1
7 8 9
and make it like this
a =
0 2 3
7 8 9
1 1 1
7 8 9
Réponse acceptée
Plus de réponses (2)
Stephen23
le 9 Jan 2018
>> a([1,3,2,3],:)
ans =
0 2 3
7 8 9
1 1 1
7 8 9
Anoop Singh
le 24 Fév 2019
Modifié(e) : Anoop Singh
le 24 Fév 2019
0 votes
a = cat(1, a(1,:), a(3,:), a(2:3,:))
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!