Réponse acceptée

Geoff Hayes
Geoff Hayes le 9 Jan 2018

2 votes

mohammed - you could try
a = [a(1,:) ; a(3,:) ; a(2:3,:)]
We use the square brackets [] to concatenate the set of row together to make the new a.

Plus de réponses (2)

Stephen23
Stephen23 le 9 Jan 2018

3 votes

>> a([1,3,2,3],:)
ans =
0 2 3
7 8 9
1 1 1
7 8 9
Anoop Singh
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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by