Cat function of Matlab [closed]

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

residentelvio gravatar image

I have to use in C this function:


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


rpad is a Mat object

residentelvio gravatar imageresidentelvio ( 2013-06-03 10:15:22 -0500 )edit

I didn't understand rpad{i,:}

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

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

            for(i=0; i<x 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 -0500 )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 -0500 )edit