Graphics Programs Reference
In-Depth Information
disp('No.')
otherwise
disp('Maybe.')
end
unix
Runs a command from the operating system, saving the result in a variable.
Similar to
dos
.
varargin
Used in a function M-file to handle a variable number of inputs.
varargout
Used in a function M-file to allow a variable number of outputs.
warning
Displays a warning message.
warning('Taking the square root of negative number.')
while
Repeats a block of commands until a condition fails to be met. Must be termi-
nated by
end
.
mysum = 0;
x=1;
whilex>eps
mysum = mysum + x;
x = x/2;
end
mysum