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.