- #1
TFM
- 1,026
- 0
Homework Statement
I need to create a contour plot
Homework Equations
N/A
The Attempt at a Solution
Hi
Firstly apologies if this is not the correct thread.
I need to create contour plots using matlab. I currently am creating ordinary scatter plots, but I have been told it is better to make this a contour plot, due to the high density (I have attached a example plot)
The data is currently in a datastruct and the plot at the moment is like so:
scatter(datastruct8.logden, datastruct7.gr,'.')
now there are a lot of variables.
I have tried to create a contour plot using contour, but the only time I got it even working was when I used the code:
dencol = [datastruct7.den;datastruct7.ug];
figure
contour(dencol);
However this just makes a weird plot which just appears to be peaks, not a contour plot (example Plot 2).
Anyone know how too help me create a proper contour plot?
Thanks in Advanced,