iam having a matrix of (128*128*24)and another of 128*128 double..how can i concatenate this..
Show older comments
iam having a matrix of (128*128*24)and another of 128*128 double..how can i concatenate this..
Answers (2)
Matt J
on 19 Oct 2012
cat(3,A,B)
6 Comments
Benitta glara
on 19 Oct 2012
Benitta glara
on 20 Oct 2012
Matt J
on 20 Oct 2012
That wasn't my question.
Benitta glara
on 20 Oct 2012
Azzi Abdelmalek
on 19 Oct 2012
Edited: Azzi Abdelmalek
on 19 Oct 2012
0 votes
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 Comment
Azzi Abdelmalek
on 19 Oct 2012
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;
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!