How to pass multiple (non-cell) arguments to a function in Octave's parcellfun( )? -
is there way pass additional numeric arguments function (or handle) inside parcellfun()
?
for example, if have cell array images
, want apply medfilt2()
them, i'll write like:
images = parcellfun( nproc, @medfilt2, images, 'uniformoutput', false );
what is, if @ all, way pass additional arguments medfilt2
, in case, let's [7 7]
?
octave's has say:
[o1, o2, ...] = parcellfun (nproc, fun, a1, a2, ...)
.. a1, a2 etc. should cell arrays of equal size.
gnu octave 3.8.1, in case helps.
you want same parameter inputs, create anonmyous function:
medfilt2wparam=@(a)medfilt2(a, [7 7])
now use code have function medfilt2wparam