MATLAB: In a 3D plot, what are the independent and dependent variables

independentvariable

When using the plot3() command, which inputs are the independent variables and which inputs are dependent variables?

Best Answer

The first two arguments to plot3() (usually ‘X’ and ‘Y’) are the independent variables. The third (usually ‘Z’) is the dependent variable. (This is the same for surf(), mesh(), and contour() plots.)
Related Question