Hello,
I have 3 column matrix. I want to plot contourf but plot shape is wrong. When i try with patch command shape is true. How can i do this with contourf? Here is example picture.
here is my patch figure code:
a=load('xyz.txt');x=a(:,1);y=a(:,2);m1=a(:,3);cor=[x y];ff=reshape( 1:length(cor), 4, length(cor)/4)';fig = figure;pm=patch('Faces',ff,'Vertices',cor,'FaceVertexCData',m1,'FaceColor','interp','Selected','on');colormap(flipud(jet(20)))shading interpcolorbarset(pm, 'edgecolor','black','LineWidth',0.5)grid ongrid minor
Best Answer