Reputation: 646
I want to concatenate 2 4D matrices
a1=zeros(28,28,61,11000); a2=zeros(28,28,61,1100);
I have tried to use
desiredResult = horzcat(a1, a2);
But its not working
Upvotes: 0
Views: 68
Reputation: 264
try using desiredResult=cat(4,a1,a2)
desiredResult=cat(4,a1,a2)
Upvotes: 3