in entry matrix first two raw is exchange with another matrix which is 2*3 replace first two whole raw with that
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pratik Anandpara
am 16 Dez. 2016
Beantwortet: KSSV
am 16 Dez. 2016
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 Kommentare
Akzeptierte Antwort
KSSV
am 16 Dez. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!