フィルターのクリア

How use interp2

7 ビュー (過去 30 日間)
Luigi Stragapede
Luigi Stragapede 2020 年 6 月 6 日
回答済み: Ameer Hamza 2020 年 6 月 6 日
I have:
  • sigma which is a vector 1x6
  • OMEGA which is a vector 1x10
  • T which is a vector 6x10 (since T is a function of sigma e OMEGA).
I want to interpolate these functions in such a way on the x axis there is sigma, on the y axis there is OMEGA and on z axis there is T.
I also want to obtain a graph
Is it possible?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 6 月 6 日
You can use interp2 like this
sigma = 1:6;
OMEGA = 1:10;
T = rand(6, 10);
interp2(sigma, OMEGA, T.', 4, 5) % (4,5) is a sample query point of format (sigma, omega). You can pass vectors too
How do you want to plot? contourf?
contourf(sigma, OMEGA, T.')

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by