MATLAB: Plot solutions to a multi variable system: x + 2y + 3z = 4

homeworkplotting

Not sure how to do this, I tried fplot but nothing showed up. It should look like a tilted plane

Best Answer

if using mesh, and plot3
[y,z]=meshgrid(-4:.1:4,-4:.1:4);
x=4-3*z-2*y;
mesh(y,z,x)
plot3(x,y,z,'o');