iam having a matrix of (128*128*24)and another of 128*128 double..how can i concatenate this..

Answers (2)

cat(3,A,B)

6 Comments

i have used the above syntax..but now my matrix becomes 128*128*25..but i need it as 128*128*24..
How can you "concatenate" two arrays without the result being bigger than the input arrays? Please describe better what it is you want to do.
as i have to give the resultant matrix into the classifier i need it as 128*128*24 because the scale factor of my classifier is 24
ok...now i had another doubt..iam using two class svm classifier..in that my scale factor is 24..how can I change that..
Best to ask that in a separate post, with a title that will catch the eye of machine learning specialists.

Sign in to comment.

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

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;

Sign in to comment.

Categories

Products

Asked:

on 19 Oct 2012

Community Treasure Hunt

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

Start Hunting!