How do I ask for a string input?
Mostra commenti meno recenti
n=input("Number of files: ");
for i=1:n
FileName(i) = input("File Name: ","s");
Here is my code which ends up giving me an error message saying
I'm simply asking for a string and inputting it into FileName which should hold all the string
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Error in DataReader (line 6)
FileName(i) = input("File Name: ","s");
What am I doing wrong? Just 20 minutes ago my code was working perfectly fine
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su String in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!