In my code, the user selects a file. That file name is assigned to "File1" as a char. Is there any way I can assign it as a string variable? I need to manipulate the name of the file after and need it in string form. Thanks.
[File1,path] = uigetfile('*.txt');
disp('User selected Cancel');
disp(['User selected ', fullfile(path,File1)]);