Take the mean over multiple points in plot
4 次查看(过去 30 天)
显示 更早的评论
I want to calculate the mean over multiple points in a plot.
y = [12 17 16 15 56 45 24 86 65 41];
x = length(y);
now I want the mean over the first two points the second two points etc. But my real dataset is bigger than these 10 points so I need a loop for it, but don't know how to do it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!