Why old mesh function error,


CodePudding user response:
1 and line 10 write wrong, should be the same as matrix,2, line 10 should write: yi=ymm (1) : ymm (2);
CodePudding user response:
Drawing statements don't written in the same position, the figure is in front of the covered, proposal writing can retain the previous figure,Subplot (1, 2, 1), the plot (x, y, '*');
Subplot (1,2,2), mesh (xi, yi, zi);