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.
262 Downloads
Updated 8 Mar 2012

View License

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 Linux
Categories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0