Copy and paste the values in the row of matrix to another row in same matrix

54 次查看(过去 30 天)
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..

回答(1 个)

KSSV
KSSV 2020-11-2
编辑:KSSV 2020-11-2
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 个评论
Turbulence Analysis
Hi,
Sorrry, I figured out.. I did a small mistake.. Actually the below works
A(5080:5280,:) = A(1:201,:) ;

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Guidance, Navigation, and Control (GNC) 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by