Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Plot intensity/pixel values with mesh as 3D plot
Replies: 1   Last Post: Jun 30, 2013 3:16 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
asif khan

Posts: 16
Registered: 6/24/13
Re: Plot intensity/pixel values with mesh as 3D plot
Posted: Jun 30, 2013 3:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Sunday, June 30, 2013 1:33:09 AM UTC+5:30, Jean wrote:
> Hello,
>
>
>
> I have a series of images from a video clip that I have converted into intensity (greyscale) and would like to plot the intensity (or pixel value) on the z axis with the x and y axes as the position (a 3D plot). I am trying to use the mesh function, but am getting nothing (just a blank plot). Any help would be welcome! Thanks all




first you take
[X,Y] = meshgrid(x,y);
then
mesh(X,Y,z)

The dimensions of the matrix [X,Y] and that of the z should be same.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.