필터 지우기
필터 지우기

Averaging and then using grpstats in Matlab?

조회 수: 2 (최근 30일)
Sonisa
Sonisa 2016년 6월 5일
댓글: Sonisa 2016년 6월 6일
I have NDVI reading for 5 times in same spot, I first want to use means of 5 values and then using grpstats as function to get the mean value on the basis of Date, Pasture, and Patches. I use NDVImean = grpstats([date Pasture Patches NDVI],[date,Pasture,Patches],'nanmean'); but since the data, Pasture and Patches are 495*1 while NDVI is 2351*1. Could anyone help me please?
  댓글 수: 2
Image Analyst
Image Analyst 2016년 6월 5일
If you take the mean of 5 in the 2351 NVDI vector, you'll have 2351/5 = 470.2. How exactly are those means supposed to match up with the 495 elements in the other vectors? The lengths don't match.
Sonisa
Sonisa 2016년 6월 6일
Yes, that is true. But it should have 2475 data file, some were missing so it came around 2351. We collect the data on same day and time since some of the data were not good we have to eradicate it. so is there anyway that I can make the elements of both vector working for each other?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Other Formats에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by