Hello, I'm having a syntex issue with cellfun (I think).
I have the following:
A = cell(1,2);B = cell(1,2);A(1,1) = {rand(3,4,5)};B(1,1) = {rand(3,4)};A(1,2) = {rand(3,4,5)};B(1,2) = {rand(3,4)};
I'd like to go over each cell in A, and place there the corresponding cell B, at location A(:,:,3).
I'm guessing cellfun should be used, but I can't figure it out how to write correctly the syntax.
Help please, someone?
Thanks.
Best Answer