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

📄 plotmore.m

📁 结合于遗传算法的偏最小二乘 光谱数据与非光谱数据均可使用
💻 M
字号:
%plotmore plots the variable selections from different programs
%run on the same data set
%It requires the data set and a matrix created by adding the b vectors
%from the programs: tot=[b1;b2;...;bn] 
function plotmore(dataset,tot)
[r,co]=size(tot);
dataset=dataset(:,1:co);
mi=min(min(dataset));
ma=max(max(dataset));
figure
plot(dataset','r')
hold on
set(gca,'XLim',[.5 co+.5]);
ra=ma-mi;
set(gca,'YLim',[mi-ra/20 ma+ra/20])
for i=1:r
  lev=mi-(ra/20)*i;  disp([' '])
  disp([' '])
  disp(['Program ' int2str(i)])
  re=input('How many variables? ');
  for ii=1:re
    plot([tot(i,ii)-.5 tot(i,ii)+.5],[lev lev],'b');
  end
end
set(gca,'YLim',[lev-ra/20 ma+ra/20])
hold off
figure(gcf)
zoomrb


⌨️ 快捷键说明

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