fminsearch with 3 variables
8 次查看(过去 30 天)
显示 更早的评论
Hello,
How do I use fminsearch for a equation with 3 variables?
f(x,y,z)=1-(x-1)^(2) * (y-1.7)^(2) - (y-1.5)^(2) * (z-2.1)^2
I thought something like this :
fun=@(x,y,z) 1-(x-1).^(2).*(y-1.7)^(2)-(y-1.5)^(2)*(z-2.1).^2
fminsearch(fun,[0,0,3]) (with (0,0,3) a random point)
but I always got the message "Not enough input arguments"
Thanks in advance!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!