source:
ETALON/CLIO/Analysis/Data24May/makemean.m
@
719
Last change on this file since 719 was 719, checked in by , 7 years ago | |
---|---|
File size: 184 bytes |
Line | |
---|---|
1 | function [Xpos,Ypos, Yerr]=makemean(X,Y) |
2 | Xpos=sort(unique(X)); |
3 | |
4 | for c=1:length(Xpos) |
5 | diap=(X==Xpos(c)); |
6 | Ypos(c)=mean(Y(diap)); |
7 | Yerr(c)=rms(Y(diap)-Ypos(c)); |
8 | end |
9 |
Note: See TracBrowser
for help on using the repository browser.