📄 clopt.m
字号:
% CLOPT.M Find the minimum of a function input as 'fn(x(1),x(2))'% Input function and initial guess.clearfn=input('Function to minimize as a string f(x(1),x(2))=')%% Input the limits for minimizationxguess=input('Input the starting vector [x(1) x(2)]= ')%xmin=fmins(fn,xguess) % Find minimum% Display minimum value of functionx(1)=xmin(1);x(2)=xmin(2);zmin=eval(fn)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -