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


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -