This question is closed. Reopen it to edit or answer.

scrolling the screen togheter with the code

1 view (last 30 days)
andrea vironda
andrea vironda on 9 Mar 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
hello i wrote a long code asking me many input. i would to see the variable name the code is asking me in the upper window while the down windows is displaying the input request string. how can i do?

Answers (1)

Stalin Samuel
Stalin Samuel on 9 Mar 2016
  1. Simply add the variable name in addition to the prompt message like below
x = input('Enter the number of elements (x) ')

Community Treasure Hunt

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

Start Hunting!