average multiple curves matlab
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abdullah algarni
el 18 de Jun. de 2016
Comentada: Star Strider
el 6 de Sept. de 2021
Hello every body I have multiple xy curves extacted from experiments results (X1 vs Y1, X2 vs Y2,......X5 vs Y5), I looking for method to plot the Xavg vs Yavg. Thanks
0 comentarios
Respuesta aceptada
Star Strider
el 19 de Jun. de 2016
Use interp1.
4 comentarios
Star Strider
el 6 de Sept. de 2021
I would use a for loop.
The code would have to be changed to accommodate that, and to put the curves in a cell array and then index them as such in the loop and then average them (since the point here is that the curves have different dimensions, and so would not be in a matrix).
It also assumes that the ‘x’ vectors cover the same range (initial and final values), so the interpolation would simply equalise the number of elements in each of them, and the associated ‘y’ vectors. If that were not the situation, this would become more complicated, and likelly considerably so.
.
Más respuestas (0)
Ver también
Categorías
Más información sobre Interpolation 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!