Cat function of Matlab [closed]

asked 2013-05-26 11:36:33 -0600

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:

edit retag flag offensive reopen merge delete

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 ( 2013-06-03 10:15:22 -0600 )edit

I didn't understand rpad{i,:}

Jawaher Khemakhem gravatar imageJawaher Khemakhem ( 2013-06-03 10:47:10 -0600 )edit

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 ( 2013-06-03 11:28:46 -0600 )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 ( 2013-06-20 23:29:20 -0600 )edit