フィルターのクリア

spline interpolation between three values

2 ビュー (過去 30 日間)
Abdulrahman Mohamed
Abdulrahman Mohamed 2022 年 10 月 27 日
回答済み: Chunru 2022 年 10 月 27 日
I have pressure ,tempreature and density data and I want to make spline interpolation that fits all
so I have P=[100 200 300];
T=[100 150 400];
density=[0.4,0.7.0.8]
so i need to get spline function for p,t and density I found onle splin function for two parameter only

回答 (1 件)

Chunru
Chunru 2022 年 10 月 27 日
P=[100 200 300];
T=[100 150 400];
density=[0.4,0.7,0.8];
Pq =100:300;
Tq = spline(P, T, Pq);
dq = spline(P, density, Pq);
subplot(121); plot(P, T, 'o', Pq, Tq, 'b-');
subplot(122); plot(P, density, 'o', Pq, dq, 'b-');

カテゴリ

Help Center および File ExchangeSplines についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by