Extrapolate values for a variable that is dependent on three other variables?
1 回表示 (過去 30 日間)
古いコメントを表示
I have data downloaded for three variables:
- Temperature (85x1)
- Salinity (85x1)
- Pressure (85x1)
I use the three variables to calculate Density through a function I downloaded. I have 107 files all with the same variables but with varying lengths, so the shortest file has dimensions (85x1) while the longest has dimensions (3061x1). How can I extrapolate the values if its dependent on three different variables?
2 件のコメント
KSSV
2020 年 12 月 9 日
What is the dependent variable here? The dimensions 85X1 and 3061X1 are wrt to what? Time?
回答 (1 件)
Walter Roberson
2020 年 12 月 9 日
Use your vectors of representative datas to calculate corresponding representive densities. Then
F = scatteredInterpolant(Temperature, Salinity, Pressure, calculated_Density);
After that, you can
interpolated_Density = F(query_temperature, query_salinity, query_pressure)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Oceanography and Hydrology についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!