Hi Adham Ahmed,
For any input 'w', to create that many number of variables during run time, 'sprintf' function can be used.
Then the 'eval' function can be used to initialize them to zero as you wanted to do.
The following code takes an input 'w' and then creates that many number of variables namely U11, U12, ...., U1w at run time and initializes all of them to zero.
var_name = sprintf('U%d%d', 1, k);
In the above code, for an example, if the input 'w' is 3, then you can print 'U13' using
to confirm the variable creation and value assignment.