How to replace a row in a matrix using colon notation with another row
Ältere Kommentare anzeigen
How do i replace a row in a matrix with another row using colon notation?
Matrix=[1,1,1;2,2,2;3,3,3;4,4,4]
ReplaceRow=[0,0,0]
end result matrix would be
desired = [0,0,0;2,2,2;3,3,3;4,4,4]
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!