How can i pass the one cell of array to any function as argument.

1 view (last 30 days)
I divided my image into image block using mat2cell() now i need to pass only one cell of array to further divide it in smaller parts.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Feb 2013
Suppose your cell array is C, and you want to pass the array that is at C(P,Q). Then what you would pass is C{P,Q} -- notice the curly brackets.
  1 Comment
Usha Kiran Rajput
Usha Kiran Rajput on 4 Feb 2013
I got the error-
??? Error using ==> strfind Input strings must have one row.
Error in ==> imread at 340 if (strfind(filename, '://'))
Error in ==> PixelBlock at 24 rgbImage = imread(input_img);
Error in ==> Demo1 at 75 PixelBlock(ca{2,3});

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!