I want to represent data with 2 variables in 2D format. The value is represented by color and the 2 variables as the 2 axis. I am using the contourf function to plot my data:(adsbygoogle = window.adsbygoogle || []).push({});

load('data.mat')

cMap=jet(256);

F2=figure(1);

[c,h]=contourf(xrow,ycol,BDmatrix);

set(h, 'edgecolor','none');

Both xrow and ycol are 6x6 matrices representing the coordinates. BDmatrix is the 6x6 matrix representing the corresponding data. However, what I got the picture as attached.

Would it be possible for the contour color to vary smoothly rather than appearing as straight lines joining the data points? The problem of this figure is the coarse-granularity which is not appealing. I have tried to replace contourf with imagec but it seems not working. I am using MATLAB R2015b.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab Matlab -- how to make a smooth contour plot?

Tags:

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Matlab smooth contour | Date |
---|---|

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Matlab Plotting Coordinate Transformations in Matlab | Feb 12, 2018 |

Matlab imshow Pixel smoothing | Apr 22, 2016 |

**Physics Forums - The Fusion of Science and Community**