How can i work with a set of column vector that has 365 rows. I want to find the mean between the 2- 45 data and then 172 and 356 data only. Not all the mean.
1 次查看(过去 30 天)
显示 更早的评论
How can i work with a set of column vector that has 365 rows. I want to find the mean between the 2- 45 data and then 172 and 356 data only. Not all the mean. The range am looking for is 2-45 and also 172-356
3 个评论
回答(1 个)
chiyaan chandan
2021-11-29
The following code will calculate the means of rows from 2 to 45 and 172 to 365 of every coloumns
clc
clear all
%%
Data=randn(365,5);
MEAN_values=[mean(Data(2:45,:));mean(Data(172:356,:))];
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!