help-octave
[Top][All Lists]
Advanced

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

Re: nlfilter undefined error


From: Liam Groener
Subject: Re: nlfilter undefined error
Date: Mon, 09 May 2011 11:04:09 -0700


On May 9, 2011, at 10:39 AM, Chethan S wrote:

Hi all!

I have a function written in MATLAB which goes as follows:

function dir(subfn)
...................
fh = eval(['@' subfn]); % Function handles
I2 = uint8(nlfilter(I, [7 7], subfn));
...............

function [gamma] = ew(I)
.........
end

function [gamma] = nw(I)
.........
end

function [gamma] = nd(I)
........
end
end

When I try calling the function as I call it in MATLAB,
octave:4> dir('ew')
I get the following error:

error: `nlfilter' undefined near line 16 column 12
error: evaluating argument list element number 1
error: called from:
error:   /home/chethan/dir.m at line 16, column 4

Do I have to change anything in the nlfilter line or is calling functions/function handles different in Octave? In MATLAB it works fine without any error

nlfilter is part of the image package from Octave-Forge. Do you have that installed?


reply via email to

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