It is a very simple problem, though I do not know how to deal with it.
I defined a function f(x,y)
which will return a, say, 2*2 matrix. I want to define a new function g
whose value is the (1,1) element of f(x,y)
. I naively tried g=@(x,y)(f(x,y))(1,1)
, which of course failed . Please help me!