I don’t know if MATLAB can do this, and I want it purely for aesthetics in my code, but can MATLAB create two variables at the same time?
Example
x = cell(4,8);
y = cell(4,8);
Is there a way to write the code something similar to:
x&y = cell(4,8);
Use comma-separated lists to get multiple variables in the left hand side of an expression.
You can use deal() to put multiple assignments one line.
Call it with a single input and all the outputs get the same value.