Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB

Note

Steve on Image Processing with MATLAB has been archived and will not be updated.

More about meshgrid

Reader Philip Batchelor thought I could do better in describing meshgrid. I had commented that "meshgrid is kind of hard to describe in words."

Well, maybe I was being a bit lazy there, as well as unfair to our writers! Here's what the meshgrid documentation says:

[X,Y] = meshgrid(x,y) transforms the domain specified by vectors x and y into arrays X and Y, which can be used to evaluate functions of two variables and three-dimensional mesh/surface plots. The rows of the output array X are copies of the vector x; columns of the output array Y are copies of the vector y.

That works!

Thanks, Philip. Keep those comments coming, everyone.

|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.