summaryrefslogtreecommitdiff
path: root/macros/filter2.sci
blob: 82f3f0b73fdbd9b4b3210e3f14b9b8e063dbc705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function Y = filter2 (B, X, SHAPE)

funcprot(0);
lhs = argn(1)
rhs = argn(2)
if (rhs < 2 | rhs > 3)
error("Wrong number of input arguments.")
end

select(rhs)
	
	case 2 then
        Y=callOctave("filter2",B,X)
	case 3 then
		Y = callOctave("filter2",B,X,SHAPE)
    end

endfunction