MATLAB: How do you print the counter value in an input statement

counterinputMATLAB

How do you print the counter value in an input statement? Below is what I have tried. As is, it prints an empty box.
example:
for k = 1:value
s(1,k) = input(['please enter wall #',k,' U-factor: ']);
end

Best Answer

Use sprintf, e.g.,
input(sprintf('please enter wall #%d U-factor:',k))
Related Question