Copy and paste the values in the row of matrix to another row in same matrix
70 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I have 1000 x 4 matrix, here I would like to copy and assign the values of first 200 rows to 5080 to 5280 rows. May I know how to asign this..
0 comentarios
Respuestas (1)
KSSV
el 2 de Nov. de 2020
Editada: KSSV
el 2 de Nov. de 2020
Let A be your 1000*4 matrix and B be other matrix whih has four columns. Assuming that B has lot many rows.
B(5081:5280,:) = A(1:200,:) ;
3 comentarios
KSSV
el 2 de Nov. de 2020
The above will repalce 201 rows.....use
B(5081:5280,:) = A(1:200,:) ;
Ver también
Categorías
Más información sobre Switches and Breakers en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!