error in finding the mean

조회 수: 7 (최근 30일)
Pat
Pat 2011년 12월 30일
I have found values of R and P
R(k) = n/8
P(k)= n/28
i have used this inside for loop ,the value of n varies,,i get 80 values for R and P ,each having 80 values,i want to find mean of every eight values of R and P tried
R1(x)=mean(R(:));
P1(x)=mean(P(:));
but getting same values for one value is repeated 10 times,
please help
  댓글 수: 5
Chandra Kurniawan
Chandra Kurniawan 2011년 12월 30일
Then, How can I get the value of n?
Pat
Pat 2011년 12월 30일
T=500;
c = find(R < T);
n=numel(c);
R =euclidean distance(80 values),i am finding values which are less than 500

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by