help-octave
[Top][All Lists]
Advanced

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

nlfilter undefined error


From: Chethan S
Subject: nlfilter undefined error
Date: Mon, 9 May 2011 23:09:52 +0530 (IST)

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 errors.

Thanks and regards,

Chethan S.



reply via email to

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