Skip to content

Instantly share code, notes, and snippets.

@monwarez
Last active June 22, 2017 21:03
Show Gist options
  • Save monwarez/506dbc22fc65a17ad6190da8898f8ea9 to your computer and use it in GitHub Desktop.
Save monwarez/506dbc22fc65a17ad6190da8898f8ea9 to your computer and use it in GitHub Desktop.
mean curve
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