Plotting a 2D Heat map for a square?

29 ビュー (過去 30 日間)
Kulwinder Basuta
Kulwinder Basuta 2017 年 5 月 29 日
コメント済み: Moeen 2023 年 4 月 2 日
Hi,
I have 9 Data points corresponding to temperatures within a 2d square, distributed as a 3 x 3 grid. I would like to create a colour plot whereby I have blue (cold) and red (hot) regions respectively. But I would like to have it blended such that intermediate temperatures are orange and slowly transition to red or blue. Basically if predicting the temperature at all locations. Treat the square as a 5 x 5 where the 3 x 3 inner points are known and the temperature along the boundaries are constant and known.
Please let me know if this makes sense.
  1 件のコメント
Moeen
Moeen 2023 年 4 月 2 日
I need to make a heat zone contour in which by the following temperature data from T1 to T16.
195.85
198.03
167.41
139.14
200.86
204.36
174.21
142.52
211.62
218.44
186.82
147.2
195.09
195.07
157.04
133.98 Need to plot a haet zone can you help me put with code

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

採用された回答

KSSV
KSSV 2017 年 5 月 29 日
Read about pcolor and colormap
N = 5 ;
x = linspace(0,1,N) ;
y = linspace(0,1,N) ;
T = rand(N) ;
pcolor(x,y,T) ;
colorbar
% colormap(jet)
  2 件のコメント
Kulwinder Basuta
Kulwinder Basuta 2017 年 5 月 29 日
Hey,
Thankyou! Is there any way to blend adjacent values?
Thanks
KSSV
KSSV 2017 年 5 月 29 日
Try
shading interp
after pcolor

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by