Last active
June 22, 2017 21:03
-
-
Save monwarez/506dbc22fc65a17ad6190da8898f8ea9 to your computer and use it in GitHub Desktop.
mean curve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f = 1:length(file) | |
... | |
end | |
% init at the first curve data | |
BRMean = Data(1).BR | |
lg2Mean = Data(1).lg2 | |
% accumulate the rest of data | |
for f = 2:length(file) | |
BRMean = BRMean + Data(f).BR | |
lg2Mean = lgMean + Data(f).lg2 | |
end | |
% and now dividide by the number of curve | |
BRMean = BRMean/length(file) | |
lg2Mean = lg2Mean/length(file) | |
% and now you can plot it enjoy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment