mean without stable step
1 次查看(过去 30 天)
显示 更早的评论
Hi all! I need your help please!
my data are 3033 lines and 2005 columns. I want to find the mean for all columns separately but the step in lines is different. For example, i want to find the mean for the first 167 lines, then from 168 to 294, 295 to 428 and so on. what code can i write?
Thank you!
0 个评论
采纳的回答
更多回答(3 个)
Mikhail
2014-9-25
You can write a=mean(M,2) - this will find mean of matrix M along each column. And then take only values you need. For 3033*2005 this is ok.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!