how do you print the counter value in an input statement?

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

 Accepted Answer

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

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!