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

Plotting a Matrix within an X,Y range

  1. Jul 2, 2008 #1
    Hi guys...

    Here's the problem. I want to plot a Temperature T(x,y) profile across a plate with dimensions L x W. I'm using finite difference method so the temperature are only known at the nodes I choose, if I make n nodes across the Length and m nodes across the Width I will end up with an n x m matrix or n*m x 1 matrix. The problem is that I want to assign each known Temperature of the nodes to its respect point in the plate across the x-y plane.

    Is not a plotting command problem, I used surf(T) or mesh(T) and I end up with a plot that have the temperature profile but the x axis goes from 0 to n and the y from 0 to m and not LxW. The temperature is not in it's corresponding x,y point.

    Any help?
    Thanks in advance.
  2. jcsd
  3. Jul 2, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You need to learn to read the documentation. From MATLAB's help:

    - Warren
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook