clc clear all close all nlist = [(1:40)' 5*ones(40,1) 5*ones(40,1) 5*ones(40,1)]; dirs = 'XYZ'; oid = fopen('.\plots\octave\log.txt','w'); for i = 1:2%length(nlist(:,1)) for j = 1:3 mtf = [(1:109)' (1:109)']; etf = [(1:109)' (1:109)']; figure(1),hold on; figure(1),plot(mtf(:,1),mtf(:,2),"linewidth",1); figure(1),plot(etf(:,1),etf(:,2),"linewidth",1); figure(1),hold off; set(gcf,'Position',[675,450,1150,650]); set(gca,'Xscale','log'); grid on; xlim([1 100]); legend('MSM','ESM',"Location",'northwest') legend("boxoff") fname = sprintf('.\\plots\\octave\\%6.6dTR_%s.png',nlist(i,1),dirs(j)) fprintf(oid,'%s\r\n',fname) % saveas(gcf,fname); print(fname,'-dpng'); close(gcf); end end fclose(oid);