MATLAB: Error using surf invalid parameter/value pair arguments

error using surf invalid parameter/value pair arguments

Hello,
I have a problem with the surf command. When I try to make a graph I get the following error: "Invalid parameter/value pair arguments." How to solve it?
Thanks for your answer,
Antoine

Best Answer

The problem may be the way you defined the color in the surf call. See the documentation on Coloring Mesh and Surface Plots.