iam having a matrix of (128*128*24)and another of 128*128 double..how can i concatenate this..
1 次查看(过去 30 天)
显示 更早的评论
iam having a matrix of (128*128*24)and another of 128*128 double..how can i concatenate this..
0 个评论
回答(2 个)
Azzi Abdelmalek
2012-10-19
编辑:Azzi Abdelmalek
2012-10-19
your first matrix A size is 128*128*24. If you concatenate any matrix to A the result size, obviously will change! why are you expecting the final size to be the same? have you read Matt's comment?
1 个评论
Azzi Abdelmalek
2012-10-19
Unless you want to replace one matrix by another, in this case use for example
A=rand(128,128,4);B=rand(128,128)
A(:,:,1)=B;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!