Weighted Average of Data with Irregular Range and Missing Data
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a 555x5 matrix
A = [Lat Lon Bm Lower Upper]
Bm represents biomass data. Lower and Upper represent the lower and upper boundaries of the depths (cm) from which the data was procured. This data is in situ. I want to be able to compare this data to a model output of depth of 5cm, 25cm, and 75cm
I want to take the weighted average of the depth interval relative to the depth of comparison.
Therefore, for each latxlon, I want to create a code that will look at the Lower and Upper depth boundaries and weigh the Bm with respect to the 5, 25, and 75cm depths so that it will represent the biomass AT THAT VALUE of 5cm.
I have attached the data so you can have a better idea of what I'm working with I have no idea how I should approach this, so any help would be greatly appreciated!
Thank you,
Melissa
2 个评论
Guillaume
2015-1-12
Can you give more details on what you want to obtain? For example, given the first line of your matrix
-77.63 162.87 0.66 0 10
what Bm should result?
Also, the maximum depth in your matrix is 30, so where does the 75 cm depth figures?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Map Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!