[filename,pathname]=uiputfile('*.mat','save data as');file=strcat(pathname,filename);save(file,'net');