how can i add row to matrix
Show older comments
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
Accepted Answer
More Answers (2)
Stephen23
on 9 Jan 2018
>> a([1,3,2,3],:)
ans =
0 2 3
7 8 9
1 1 1
7 8 9
Anoop Singh
on 24 Feb 2019
Edited: Anoop Singh
on 24 Feb 2019
0 votes
a = cat(1, a(1,:), a(3,:), a(2:3,:))
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!