Averaging and then using grpstats in Matlab?
1 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!