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
2019년 4월 26일
편집: madhan ravi
2019년 4월 26일
contourf(xx,you,zz) % ? Perhaps
Adam Danz
2019년 4월 26일
madhan ravi
2019년 4월 26일
편집: madhan ravi
2019년 4월 26일
Agree with Adam , meant contourf() but then typed the other.
Adam Danz
2019년 4월 26일
contour() is also a possibility, though. Depends if you want fill or not.
Amit Kumar
2019년 4월 29일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!