MATLAB: Plotting a parametrized 3D surface defined by at least 3 parameters

3d plotMATLABparametric surface

I am trying to graph a parametrized 3D surface defined by at least 3 parameters. For example, for x_i between 0 and 1, I want to graph the surface given by (x_1x_2, x_1x_3, x_2x_3). It looks like mesh, fmesh, surf, etc. only take functions of 2 parameters. I'm new to Matlab so apologies if this is obvious. Any suggestions?

Best Answer

Consider,
V = linspace(0,1,20);
[X1,X2,X3] = ndgrid(V);
X = X1.*X2; Y = X1.*X3; Z = X2.*X3;
scatter3(X(:), Y(:), Z(:))
Now rotate the plot. It will become clear that you do not have a single surface.
You have three independent continuous variables and at least one result (perhaps 3). You cannot define the output in terms of 2 variables plus 1 output as is required for 3D plots: your plot is at least 4D (possibly 6D).
Related Question