Input argument error while running a batch function.

2 ビュー (過去 30 日間)
hemant
hemant 2016 年 12 月 19 日
回答済み: Walter Roberson 2016 年 12 月 19 日
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.

採用された回答

Walter Roberson
Walter Roberson 2016 年 12 月 19 日
j=batch(@func1,1,{image1,4,image2});

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by