Here is a MATLAB function that checks if an input is a valid file name (including the extension ".txt"). The function returns a boolean value valid
that is true if the input meets the criteria, and false if it does not.
main.m716 chars22 lines
To use this function, simply call it with a string that represents the filename you want to check. For example:
main.m188 chars6 lines
gistlibby LogSnag