필터 지우기
필터 지우기

How can ı calculate the mean of an interval?

조회 수: 11 (최근 30일)
Ege Gurtan
Ege Gurtan 2017년 8월 28일
답변: KSSV 2017년 8월 28일
There are 300 elements in my vector (vector A). I want to calculate the mean of all the elements from 200th to 300th element. How do I do that?

채택된 답변

KSSV
KSSV 2017년 8월 28일
A = rand(300,1) ;
iwant = mean(A(200:300)) ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by