Weighted Average of Data with Irregular Range and Missing Data
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Guillaume
il 12 Gen 2015
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?
Risposte (0)
Vedere anche
Categorie
Scopri di più su Map Display in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!