MATLAB: Genvarname({‘A’, ‘A’, ‘A’, ‘A’});

MATLABmatlab gui

Hi I would like to use genvarname({'A'}) but it should be dynamic times, like A1,A2,A3,….,An, as much as i want. I am not interest to write it like v = genvarname({'A', 'A', 'A', 'A'}); (5 times). Hope you the people understand why I do not want to write of it.

Best Answer

genvarname(repmat({'A'},1,5),'A')
Related Question