[PLAIN]http://picasaweb.google.com/lh/photo/Z35aAZ1CbEqbEgymi8Xs5w?feat=directlink [Broken](adsbygoogle = window.adsbygoogle || []).push({});

Hi, I plotted this figure but it turned out that the original geometry has been distorted. I mean the geometry I'm calculating is like this:

a rectangle with two triangles attached, one to the upper-right, one to the middle. I'm sorry I couldn't provide a figure to illustrate here and I hope it's understandable.

I guess the problem could be due to interpolation but I'm not sure. here's the command:

xlin = linspace(min(x),max(x),100);

ylin = linspace(min(y),max(y),100);

[X,Y]=meshgrid(xlin,ylin);

Z=griddata(x,y,z,X,Y,'cubic');

surf(Z); view(0,90); shading interp;

Thanks for any help or suggestion!

**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 drawing out of shape

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Matlab drawing shape | Date |
---|---|

Draw Lines between Points in MATLAB | Apr 14, 2011 |

Draw a simpl graph in matlab | Jan 21, 2011 |

Problem with drawing a function in MATLAB | Dec 17, 2009 |

Draw Thomson cross section in polar plot by matlab | Dec 30, 2008 |

How can I draw graphs for the equation on matlab | Nov 10, 2008 |

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