MATLAB: Graphing a system of equations on the same set of axes in 3d? please

graph

I want to graph a system of equations of 3×3 in dimensions, that in the graph the interception of the 3 planes is observed

Best Answer

[x, y] = meshgrid(linspace(-10, 10)); % Calculate the two surfaces z1 =(3*x+8*y)/2; z2=(6*x+2*y)/8; z3=9*x+4*y; % Visualize the two surfaces surface(x, y, z1, 'FaceColor', [0.5 1.0 0.5], 'EdgeColor', 'none'); surface(x, y, z2, 'FaceColor', [1.0 0.5 0.0], 'EdgeColor', 'none'); surface(x, y, z3, 'FaceColor', [0.5 0.5 0.5], 'EdgeColor', 'none'); view(3); camlight; axis vis3d
Related Question