方法一:set(gca, 'XTick',[-3*pi -2*pi -pi 0 pi 2*pi 3*pi], 'XTickLabel', {'-3\pi','-2\pi','-\pi','0','\pi','2\pi','3\pi'});
方法二:ax = gca; ax.XTickLabel={'-8\pi','-2\pi','-\pi','0','\pi','2\pi','3\pi'};
方法一:set(gca, 'XTick',[-3*pi -2*pi -pi 0 pi 2*pi 3*pi], 'XTickLabel', {'-3\pi','-2\pi','-\pi','0','\pi','2\pi','3\pi'});
方法二:ax = gca; ax.XTickLabel={'-8\pi','-2\pi','-\pi','0','\pi','2\pi','3\pi'};