I am writing a code that requires the user to input a specific file directory (which they can obtain by hitting copy address as text when in the corresponding file). The line of code looks like this and it occurs near the very beginning of the code:
folder = input('Input file location (Copy address as text) \n(i.e. C:\\Users\\joahf\\Documents\\MATLAB\\Image Processing\\image_sets\\software_setup): '); % Have user input file location.
When I run the code, this is what I input and the corresponding error that occurs:

The code ends instantly after submitting this input.
The code continues to run fine when I do not input anything and the input functions returns an empty matrix. Even stranger, when I input something simpler such as "hello", I get a different error and it allows me to reenter it:

If someone knows what could be going on that would be much appreciated.