2012. 7. 1. 10:45

[MATLAB] plot의 글자크기(font size) 및 모양 변경하기 ylabel, xlabel, legend

clear all; clc

t = 0:0.01:2*pi;

alpha = sin(t);


plot(t,alpha);


xlabel(['\fontname{times new roman}' '\itt\rm'], 'fontsize', 30)


h_ylabel = ylabel('\it\alpha\rm(\itt\rm)');

set(h_ylabel, 'fontname', 'times new roman', 'fontsize', 30);


h_legend = legend('\it\alpha=\rmsin(\itt\rm)');

set(h_legend, 'fontname', 'times new roman', 'fontsize', 30)