I have function called "editwin",,,now i want to increase the functions dynamically like"editwin1","editwin2","editwin3","editwin4","editwin5","editwin6",,only names should change dynamically
No products are associated with this question.
No, please do not do this. Inserting an index in a name is always a bad idea.
Please explain what you actually want to achieve. Perhaps this helps, but usually the are better solutions:
for counter = 1:6 fcn = str2func(sprintf('editwin%d', counter)) feval(fcn) % for example end
Play games and win prizes!Learn more