How can i obtain such 3-D meshgrid image of ...
Show older comments
Hello,
Acutally, I want to generate a 3-D plot for a Gabor filter's (2D matrix) real part and imaginary part. But I don't know how to do so. For example, I calculate the real and imaginary parts of a Gabor filter which are like:
GR = M-by-M matrixGr =
Columns 1 through 6
0.0000 -0.0000 -0.0000 0.0000 0.0000 -0.0000
-0.0000 -0.0000 0.0000 0.0000 -0.0000 0.0000
-0.0000 0.0000 0.0000 -0.0000 0.0000 0.0000
0.0000 0.0000 -0.0000 0.0000 0.0000 -0.0001
0.0000 -0.0000 0.0000 0.0000 -0.0002 -0.0008
-0.0000 0.0000 0.0000 -0.0001 -0.0008 0.0051
0.0000 0.0000 -0.0000 -0.0002 0.0028 0.0021
0.0000 -0.0000 -0.0000 0.0005 0.0006 -0.0086
-0.0000 -0.0000 0.0000 0.0001 -0.0014 0.0006
-0.0000 0.0000 0.0000 -0.0001 0.0001 0.0005
0.0000 0.0000 -0.0000 0.0000 0.0000 -0.0000
0.0000 -0.0000 0.0000 0.0000 -0.0000 -0.0000
-0.0000 0.0000 0.0000 -0.0000 -0.0000 0.0000
Columns 7 through 12
0.0000 0.0000 -0.0000 -0.0000 0.0000 0.0000
0.0000 -0.0000 -0.0000 0.0000 0.0000 -0.0000
-0.0000 -0.0000 0.0000 0.0000 -0.0000 0.0000
-0.0002 0.0005 0.0001 -0.0001 0.0000 0.0000
0.0028 0.0006 -0.0014 0.0001 0.0000 -0.0000
0.0021 -0.0086 0.0006 0.0005 -0.0000 -0.0000
-0.0158 0.0021 0.0028 -0.0002 -0.0000 0.0000
0.0021 0.0051 -0.0008 -0.0001 0.0000 0.0000
0.0028 -0.0008 -0.0002 0.0000 0.0000 -0.0000
-0.0002 -0.0001 0.0000 0.0000 -0.0000 0.0000
-0.0000 0.0000 0.0000 -0.0000 0.0000 0.0000
0.0000 0.0000 -0.0000 0.0000 0.0000 -0.0000
0.0000 -0.0000 0.0000 0.0000 -0.0000 -0.0000
Column 13
-0.0000
0.0000
0.0000
-0.0000
-0.0000
0.0000
0.0000
-0.0000
0.0000
0.0000
-0.0000
-0.0000
0.0000
Answers (1)
Walter Roberson
on 22 Jun 2013
Why not
mesh(GR)
?
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!