Assign the same values to many output variables
Version 1.0.0.0 (1.33 KB) by
Hairui
MANY takes in the variable x and assign it to all the output variables.
MANY takes in the variable x and assign it to all the output variables.
This function works as the equation sign in C++ so that the following expression in C++:
x1 = x2 = x3 = x4 = x5 = 8;
is equivalent to the following expression in MATLAB:
[ x1, x2, x3, x4, x5 ] = MANY( 8 );
Cite As
Hairui (2024). Assign the same values to many output variables (https://www.mathworks.com/matlabcentral/fileexchange/35517-assign-the-same-values-to-many-output-variables), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |