I want to prompt the user to enter a file name and then to display if it doesn't exist or the information for the file name requested
12 views (last 30 days)
Show older comments
I'm trying to write a code to promt the user to input a file name (the correct file name is composition_alcohols.xlsx)
I want the user to either have three tries to input the file name before the loop is terminated or when they do enter the file name I want to display the information from the file.
I tried just using
userinput = input('Enter file name: ')
and I am getting an error with this format saying the input is an undefined variable or class but I am also confused how to translate the user input into displaying the desired file.
0 Comments
Answers (1)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!