deal2 - Multiple assignment

The function deal2 is an extension of the function deal.

You are now following this Submission

The function deal2 is designated for multiple assignment. It is an extension of the function deal. The main differences between both functions are:
- deal2 need not have equal number of input and output arguments,
- deal2 makes all output arguments empty for missing input arguments,
- deal2 transfers at most nargout arguments from input arguments,
- deal2 may split input arguments into elements and tranfer them to output arguments.
- deal2 may decompose matrices into columns and store them in output arguments

All superfluous output arguments are made empty, and all superfluous input arguments are not transfered.

Cite As

Miroslav Balda (2026). deal2 - Multiple assignment (https://www.mathworks.com/matlabcentral/fileexchange/32547-deal2-multiple-assignment), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Complemented decomposition of matrices into colums and storing them in output variables.

1.0.0.0