필터 지우기
필터 지우기

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.

조회 수: 3 (최근 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
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,:))];

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by