Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab drawing out of shape

  1. Apr 26, 2010 #1
    [PLAIN]http://picasaweb.google.com/lh/photo/Z35aAZ1CbEqbEgymi8Xs5w?feat=directlink [Broken]

    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);
    surf(Z); view(0,90); shading interp;

    Thanks for any help or suggestion!
    Last edited by a moderator: May 4, 2017
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted