how to make a 2d contour graph

How to make a 2d colour contour graph. I attached two files.
from the excel file:
x = blue values
y = yellow colour
z = green colour
I tried matlab programme using txt book with same data:
filename = 'a.txt';
A = importdata(filename);
x = A(:,1);
y = A(:,2);
[xx,yy]=meshgrid(x,y);
z=A(:,3);
[zz]=meshgrid(z);
figure
contour(x,y)

5 件のコメント

madhan ravi
madhan ravi 2019 年 4 月 26 日
編集済み: madhan ravi 2019 年 4 月 26 日
contourf(xx,you,zz) % ? Perhaps
Adam Danz
Adam Danz 2019 年 4 月 26 日
madhan ravi
madhan ravi 2019 年 4 月 26 日
編集済み: madhan ravi 2019 年 4 月 26 日
Agree with Adam , meant contourf() but then typed the other.
Adam Danz
Adam Danz 2019 年 4 月 26 日
contour() is also a possibility, though. Depends if you want fill or not.
Amit Kumar
Amit Kumar 2019 年 4 月 29 日
Thank you so much Madhan and Adam.

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

回答 (0 件)

カテゴリ

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

質問済み:

2019 年 4 月 26 日

コメント済み:

2019 年 4 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by