how to make a 2d contour graph
Ältere Kommentare anzeigen
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 Kommentare
madhan ravi
am 26 Apr. 2019
Bearbeitet: madhan ravi
am 26 Apr. 2019
contourf(xx,you,zz) % ? Perhaps
Adam Danz
am 26 Apr. 2019
madhan ravi
am 26 Apr. 2019
Bearbeitet: madhan ravi
am 26 Apr. 2019
Agree with Adam , meant contourf() but then typed the other.
Adam Danz
am 26 Apr. 2019
contour() is also a possibility, though. Depends if you want fill or not.
Amit Kumar
am 29 Apr. 2019
Antworten (0)
Kategorien
Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!