Borrar filtros
Borrar filtros

Finding average of iterated curves

1 visualización (últimos 30 días)
María Jesús
María Jesús el 14 de Oct. de 2014
Respondida: Thorsten el 14 de Oct. de 2014
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 comentario
Roger Wohlwend
Roger Wohlwend el 14 de Oct. de 2014
It depends on how you save these curves. In a matrix?

Iniciar sesión para comentar.

Respuestas (1)

Thorsten
Thorsten el 14 de Oct. de 2014
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)

Categorías

Más información sobre Error Detection and Correction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by