Cat function of Matlab [closed]

asked May 26 '13

residentelvio gravatar image

I have to use in C this function:

      stack=cat(3,rpad{i,:});

Cat utilization: Concatenate arrays along specified dimension(3rd)I have to use in C this function:

Preview: (hide)

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-11 10:55:39.435076

Comments

rpad is a Mat object

residentelvio gravatar imageresidentelvio (Jun 3 '13)edit

I didn't understand rpad{i,:}

This function is inside a loop! I try to explain better:

            for(i=0; i<x i++)
                stack=rpad[i];

The : points means from i to the end, but rpad is a Mat object, so I cant use it in this mode. And stack have to be 3dimensional array

residentelvio gravatar imageresidentelvio (Jun 3 '13)edit

Do you wanna merge the channels or something? I got rpad is a Mat object but for cat() function you need to pass the matrices or vectors to be merged along specified dimension (3 in this case). And i see that rpad is a cell array in matlab. Can you give us the dimension/content info of the rpad object from matlab? It would be easier to help with that info ( I guess)

Prasanna gravatar imagePrasanna (Jun 21 '13)edit