I just found out myself. If anyone cares, it needs to be specified as ascii file to display the variable as string so it is
[filename,pathname] = uiputfile({'*.asc';'*.xls'},'Save as');
file = fullfile(pathname, filename);
save(file,'var1' ,'-ascii' )