MATLAB: How to “plot” a surface

3dsurfsurface

Hi I have a function 2x+3y+6z=12 and I would like to plot it and to colorize the created figure. How can I do? using surf? meshgrid? plot,

Best Answer

Hint:
[x, y] = meshgrid(.....
% Then solve for z in terms of x and y.
% Then call surf(x,y,z)
It's literally 3 lines of code. You can do it.
Related Question