⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotnum.m

📁 王小平《遗传算法——理论、应用与软件实现》随书光盘
💻 M
字号:
function plotnum(x,y,h)
%
% plotnum(x,y,h)
%
% plots two x & y vectors using the
% sample number as the indicator rather
% than the usual crappy cross, on the
% axes with handle h
%

[D L]=size(x);
mnx=min(x);
mxx=max(x);
mny=min(y);
mxy=max(y);
axes(h);
for i = 1:D
	text(x(i),y(i),num2str(i));
end
set(h,'Xlim',[mnx mxx],'Ylim',[mny mxy]);
drawnow;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -