Extrapolate values for a variable that is dependent on three other variables?

조회 수: 1 (최근 30일)
Shayma Al Ali
Shayma Al Ali 2020년 12월 9일
답변: Walter Roberson 2020년 12월 9일
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
KSSV 2020년 12월 9일
What is the dependent variable here? The dimensions 85X1 and 3061X1 are wrt to what? Time?
Shayma Al Ali
Shayma Al Ali 2020년 12월 9일
The dependent variable is Density. The dimensions are reference to depth.

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

답변 (1개)

Walter Roberson
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)

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by