Heat map from a matrix

Hey everyone,
I currently have the following heat data:
T_data = [100 85.8501 83.6024 76.5512 66.1883 64.8319 61.0564 55.4288 53.8187 50]
with the x_axis = 0 0.67 0.74 1.00 1.01 1.13 1.16 1.74 1.81 2
and the y_axis = 0 0.57 0.85 0.89 0.91 0.96 1.47 1.82 1.87 2
And I would like to create a heat map of this one, something similar to the following:
How would I be able to do it?
Thanks in advance!

3 件のコメント

Dyuman Joshi
Dyuman Joshi 2022 年 7 月 31 日
You need T for every (x,y) pair to plot a contour plot like that.
Since your x and y are 1x10, your T needs to be 10x10.
LUCA GIROTTI
LUCA GIROTTI 2022 年 8 月 1 日
@Dyuman Joshi Ok ok I have got my matrix, how can I proceed from there?
Adam Danz
Adam Danz 2022 年 8 月 1 日
It looks like you're looking for contourf.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2022 年 7 月 31 日

コメント済み:

2022 年 8 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by