How can I copy two rows
Ältere Kommentare anzeigen
Let, A=[1 3 5;8 2 9;0 6 1] how to get B=[1 3 5;8 2 9]
Antworten (1)
B = A(1:2,:) ;
or
B = A([1,2],:) ;
Kategorien
Mehr zu Modeling 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!