source: ETALON/CLIO/CLIO_scripts/makemean.m @ 751

Last change on this file since 751 was 657, checked in by hodnevuc, 7 years ago
File size: 310 bytes
Line 
1function [Xpos,Ypos, Yerr]=makemean(X,Y);
2% Xpos=sort(unique(X));
3Xpos=3e+6:5e+4:3.4e+6;
4
5TotM=mean(Y(~isnan(Y)));
6for c=1:size(Xpos,2)
7    diap=(X==Xpos(c))'&(abs(Y-TotM)<30);
8    Ypos(c)=mean(Y(diap));
9    Yerr(c)=rms(Y(diap)-Ypos(c));
10 
11end
12%  Ypos(isnan( Ypos))=[];
13% Yerr(isnan( Ypos))=[];
14
Note: See TracBrowser for help on using the repository browser.