octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

possible issue in octave-forge package image (fftconv2)


From: Alireza Nejati
Subject: possible issue in octave-forge package image (fftconv2)
Date: Thu, 4 Jul 2013 12:08:54 +1200

Hi all,

In fftconv2.m in the image package, this is what line 47 currently looks like (in the latest version downloaded from sourceforge):

     if ((nargin > 2) && ismatrix(varargin{3}))

Since octave returns 1 for, say, ismatrix("same"), it doesn't recognize fftconv2(a,b,shape) properly. It thus returns errors for me. However, if I also add a isnumeric(varargin{3}) check, it works fine. This is what the corrected line looks like:

    if ((nargin > 2) && ismatrix(varargin{3}) && isnumeric(varargin{3}))

Thanks for your attention.

Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]