Sum of rows in a defined rhythm
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
i have the following array:
A(1:5*270,1)=1;
Now i would like to calculate the sum of every 270th Element. The new array is B. Every element will have the value 5 (1+1+1+1+1). Can someone tell me how i can do that?
The numbers are examples of course. In the original data there is one column with height of 5*270 and after 270 rows the numbers change.
6 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!