Enter table with conditional limits and able to interpolate

1 回表示 (過去 30 日間)
juan sanchez
juan sanchez 2024 年 9 月 23 日
編集済み: dpb 2024 年 9 月 25 日
I would like to enter the following numerical table with conditional limits and be able to interpolate within the values provided in the table. I was able to enter the rows x columns but I do not know what can I do for those values that are less than or larger than. How can <= or >= be taken care of? I believe interp2 should be used to find intermediate values for lets say h/L=12 degrees and h/L =0.35 for example. Please advise.
  5 件のコメント
juan sanchez
juan sanchez 2024 年 9 月 25 日
Thank you very much. The 'griddedInterpolant' was new to me. I am trying it out. Can Extrapolation work?
dpb
dpb 2024 年 9 月 25 日
編集済み: dpb 2024 年 9 月 25 日
You don't want to actually extrapolate; it's used above to bound the ends by using the nearest input points as the extrapolated values...if the inputs are outside the range defined, the closest values will be the endpoints
griddedInterpolant acts differently in that regards; the only options available to interpN is to either actually extrapolate (not wanted here, certainly) or set a constant value which is universal and not a value dependent on which end of the input one is extrapolating from.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by