plotnow.m
来自「遗传算法用于函数优化问题」· M 代码 · 共 18 行
M
18 行
% --------------------- %
% INTERNAL SUBFUNCTIONS
% --------------------- %
% Print Surface
function [] = plotnow(PRINT,vx,vy,vz,x,y,fx,it,mit);
% x,fx -> actual values
% vxplot, vplot -> original (base) function
if PRINT == 1,
if rem(it,mit) == 0,
mesh(vx,vy,vz); hold on; %axis([-1 1 -1 1 -1 2.5]);
% xlabel('x'); ylabel('y'); zlabel('f(x,y)');
plot3(x,y,fx,'k*'); drawnow; hold off;
end;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?