% ñâîäíàÿ êàðòèíêà ïî ñúåìêå

tmp=load('Dist_V_all.dat');
year=tmp(:,1); P=tmp(:,2); S=tmp(:,3); V=tmp(:,5);
k07=year==2007; k06=year==2006; k12=year==2012;
k06c=year==2006 & P~=12; k12c=year==2012 & P~=07;
subplot(121)
loglog(S(k06),V(k06),'d',S(k07),V(k07),'o',S(k12),V(k12),'k*',...
    'MarkerSize',3)
axis tight, set(gca,'YTick',[0.5 1 2 5])
% xlabel('Ðàññòîÿíèå îò æ/ä, êì'), ylabel('Ïðîôèëü/Îáñåðâàòîðèÿ')

% R=[S(k06c);S(k07);S(k12c)];
% A=[V(k06c);V(k07);V(k12c)];
% VV=polyfit(log10(R),log10(A),1);
% Approx=polyval(VV,min(log10(R)):max(log10(R)));

subplot(122)
loglog(S(k06c),V(k06c),'d',S(k07),V(k07),'o',S(k12c),V(k12c),'k*',...
    'MarkerSize',3)
axis tight, set(gca,'YTick',[1 2 5])
% xlabel('Ðàññòîÿíèå îò æ/ä, êì'), ylabel('Ïðîôèëü/Îáñåðâàòîðèÿ')
legend('2006','2007','2012')

