Get averages for different ranges
显示 更早的评论
Hello, I would like to obtain averages for different ranges, for example:
P = mean(data(1:15,:));
P = mean(data(16:31,:));
P = mean(data(32:45,:));
P = mean(data(46:60,:));
P = mean(data(61:75,:));
P = mean(data(76:91,:));
I don't know how to do a loop. The size of the matrix is 91x24.
Thank you for your suggestions and sorry for my bad english.
Lis.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!