How introduce a little matrix in a big matrix
1 次查看(过去 30 天)
显示 更早的评论
Hello,
in this moment i have that problem:
I have a matrix of 2400 columns and 8 rows, and every column should go stored in a big matrix of 2400 columns and 546 rows, the little matrix have the position of the row in the should go stored in a big matrix, so, i need the big matrix with the little matrix stored.
Thanks!!
回答(1 个)
Ameer Hamza
2020-4-26
You can use indexing to place a small matrix inside a larger matrix. For example
M_large = rand(564, 2400);
M_small = rand(8, 2400);
first_row = 11; % suppose you want to start M_small at row number 11 in M_large
M_large(first_row:first_row+7, :) = M_small;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!