프로그램 사용법/Matlab
[Matlab]그래프 여러게 이미지 파일로 한번에 저장하기
흰군
2013. 5. 2. 12:02
그래프를 표시하고 그 그래프를 png 파일로 저장하기
for i=1:16 close all; plot(x, abs(fft_data(i,:)) ); xlim([2,64]); ylim([0,200]); fname = ['Image/figure', num2str(i), '.png']; set(figPosition,'Position', [500, 500, 800, 400]); set(figPosition,'PaperUnits','point','PaperPosition',[0 0 800 400]); print('-dpng', fname); end |
혹은
print(gra,'-depsc2','-r300',filename) |