Colored plot of a parameter with coordinates not homogeneous

1 回表示 (過去 30 日間)
Vittorio
Vittorio 2020 年 3 月 5 日
コメント済み: Vittorio 2020 年 3 月 5 日
Goodmorning,
I have a txt file as follow:
X Y Parameter
1.1 0.5 324
1.2 0.7 4222
1.5 1.1 425
2 1.11 5
My file is bigger, but it's just an example. I would like to rapresent in a X,Y plot the value of "Parameter" with a colored scale. Since the interval between coordinates is not constant I don't know how to rapresent it. Can anyone help me?
Thank you!

回答 (1 件)

Jonas Allgeier
Jonas Allgeier 2020 年 3 月 5 日
You can use textscan(), readtable() or importdata() to read the values into the workspace.
For plotting in different colors, scatter() would make sense.
  5 件のコメント
Jonas Allgeier
Jonas Allgeier 2020 年 3 月 5 日
Then see this page for various 2D interpolation techniques.
Vittorio
Vittorio 2020 年 3 月 5 日
Thank you!

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by