I\'ve been searching the net for a couple of mornings and found nothing, hope you can help.
I have an anonymous function like this
f = @(x,y) [sin(2*pi*x
You are defining a function f = @(x,y) [0, 1]; which has the input parameters x,y and the output [0,1]. What else do you expect to happen?
f = @(x,y) [0, 1];
[0,1]
Update:
This should match your description:
g=@(x,y)[zeros(size(x)),ones(size(y))] g(x',y')