MATLAB: Input argument error while running a batch function.

batch processing

Hello all, I have a function that takes three inputs in the order, an image,an integer,another image. I have tried running the function as a batch but get the following error.
j=batch(func1,1,{image1,4,image2});
Not enough input arguments.
Error in func1 (line 7)
imgSize=size(image1);
Any ideas? The same command works perfectly well when used without the batch.

Best Answer

j=batch(@func1,1,{image1,4,image2});
Related Question