Your Q, W, and ZZ variables are going to be 3D because you are using meshgrid() on 3 inputs.
The three inputs to surf() need to be 2D.
surf() cannot be used to create volume plots.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!