in entry matrix first two raw is exchange with another matrix which is 2*3 replace first two whole raw with that
1 view (last 30 days)
Show older comments
entry matrix
1.00 4.00 4.00
3.00 0 6.00
5.00 3.00 1.00
5.00 0 4.00
0 3.00 6.00
2.00 1.00 6.00
another matrix C
1 0 9
4 6 9
now first two row of entry matrix is remove with c entry matrix is now seen like this
1 0 9
4 6 9
5 3 1
5 0 4
0 3 6
2 1 6
0 Comments
Accepted Answer
KSSV
on 16 Dec 2016
em = [1.00 4.00 4.00
3.00 0 6.00
5.00 3.00 1.00
5.00 0 4.00
0 3.00 6.00
2.00 1.00 6.00] ;
c = [1 0 9
4 6 9] ;
iwant = em ;
iwant(1:2,:) = c(1:2,:) ;
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!