myfhd1=@(x)(x+x.^2)
myfhd1 =
@(x)(x+x.^2)
>> myfhd1(2)
ans =
6
>> myfhd2=@(x,y)(sin(x)+cos(y))
myfhd2 =
@(x,y)(sin(x)+cos(y))
>> myfhd2(pi/2,pi/6)
ans =
1.8660
>> myfhd3=@()(3+2)
myfhd3 =
@()(3+2)
>> myfhd3()
ans =
5