Finding average of iterated curves

I have a code that generates multiple curves from a set of data that gets random error added to it, so after each iteration of the full code, the output curve is different. How can I get an average of these curves?

댓글 수: 1

Roger Wohlwend
Roger Wohlwend 2014년 10월 14일
It depends on how you save these curves. In a matrix?

댓글을 달려면 로그인하십시오.

답변 (1개)

Thorsten
Thorsten 2014년 10월 14일

0 개 추천

Write a function "fullcode" that returns your curve, than you can use something like this
for i = 1:N
result(i,:) = fullcode;
end
mean(result)

질문:

2014년 10월 14일

답변:

2014년 10월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by