Use a variable in Request user input prompt.
古いコメントを表示
I am trying to use the Request User Input command with a changeable message for every iteration. For example:
1 prompt=sprintf('For file %f give the value for x',filename)
2 x = input(prompt)
However filename is a 1x23 char and I don't get the result I get. The code I use, treats filename as a

Any solutions?
2 件のコメント
Azzi Abdelmalek
2015 年 7 月 9 日
What is your problem? What are you expecting as result?
Emmanouil Barmpounakis
2015 年 7 月 9 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!