How to use multi-variable functions as inputs.
显示 更早的评论
This is what I am trying to do
f = @(x1,x2,x3)x.^2+3.*x2.^2+4.*x3.^2-2.*x1.*x2+5.*x1+3.*x2+2.*x3;
ezplot(f)
fminsearch(f,[0,0,0])
I keep getting error saying not enough input arguments for fminsearch and I want to plot that function but not sure how?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!