I have a cell Array vector as attached (length may vary). It contains variable names.
mycell = 5×1 cell array {'x' } {'y' } {'var1'} {'var2'} {'var3'}
How to create a new variable as follows?
out = [x;y;var1;var2;var3];
Best Answer