MATLAB: Input prompt

inputprompt

how to make input function that displays text according to loop:
i.e. for i=1:30
g=input('enter "/i/"th line');
end
and it would display:
enter 1th line
enter 2th line
enter 3th line etc…..

Best Answer

for i=1:30
g=input(['enter ' int2str(i) ' th line']);
end