Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Countour Plot - Matlab

$
0
0
I want to generate a contour plot with 3 variables X,Y and Z, where the contour is colored by Z.

My code right now is

num = xlsread('filename')
x=num(:,1);
y=num(:,2);
z=num(:,3);
[x,y,z]=peaks;
contourf(x,y,z,10);

It generates a plot but I'm not sure if it colors XY by Z.

Viewing all articles
Browse latest Browse all 2703

Trending Articles