This is what I have so far.
filename = input('Enter your filename ending in .txt: ', 's');s1 = '.txt';s2 == 'filename' tf == strcmp(s1,s2) if tf == 0 filename = input('Enter your filename ending in .txt: ', 's');end
Thanks!
filenametxt
filename = input('Enter your filename ending in .txt: ', 's');s1 = '.txt';s2 == 'filename' tf == strcmp(s1,s2) if tf == 0 filename = input('Enter your filename ending in .txt: ', 's');end
Best Answer