Functions | |
elseif (nargin==1) if length(x) > 1 y | |
endif endif | if (isvector(x)&&isvector(y))[X |
if (nargout==0) surf(x | |
elseif (nargout==1) X_out | |
Variables | |
function [X_out, Y_out, Z_out] | |
else | x = y = linspace (-3, 3, x) |
endif endif | Y = meshgrid (x, y) |
else | X = x |
endif | Z |
y | |
else | X_out = X |
Y_out = Y | |
Z_out = Z |
elseif | ( | nargout | = =1 |
) |
elseif | ( | nargin | = =1 |
) |
if | ( | nargout | = = 0 |
) |
else X = x |
else x = y = linspace (-3, 3, x) |
y |
Y = meshgrid (x, y) |
Y_out = Y |