Home > freetb4matlab > general > deal.m

deal

PURPOSE ^

%

SYNOPSIS ^

function [varargout] = deal (varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{r1}, @var{r2}, @dots{}, @var{rn}] =} deal (@var{a})
% @deftypefnx {Function File} {[@var{r1}, @var{r2}, @dots{}, @var{rn}] =} deal (@var{a1}, @var{a2}, @dots{}, @var{an})
%
% Copy the input parameters into the corresponding output parameters.
% If only one input parameter is supplied, its value is copied to each
% of the outputs.
%
% For example,
%
% @example
% [a, b, c] = deal (x, y, z);
% @end example
%
% @noindent
% is equivalent to
%
% @example
% @group
% a = x;
% b = y;
% c = z;
% @end group
% @end example
%
% @noindent
% and
%
% @example
% [a, b, c] = deal (x);
% @end example
%
% @noindent
% is equivalent to
%
% @example
% a = b = c = x;
% @end example
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003