deal2 - Multiple assignment
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 (2024). deal2 - Multiple assignment (https://www.mathworks.com/matlabcentral/fileexchange/32547-deal2-multiple-assignment), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.