参考:

1、http://blog.csdn.net/u010555688/article/details/37726579

2、http://blog.csdn.net/u010555688/article/details/37726579



示例matlab代码:


close all
clear
clc

Xi = -6:0.01:6;
Yi = [sin(Xi);cos(Xi);];

gcf_value = figure
plot_value = plot(Xi,Yi)
axe_value = gca;
set(axe_value,'XTick',[-5 0 5])
set(axe_value,'XTickLabel',{'-5','0','5'})
set(axe_value,'XTick',[])
axis off %关闭背景
axe_value_proprity = get(axe_value)
axe_value_proprity.XLim
axe_value_proprity.XColor
axe_value_proprity.YLim 
text([-5,0,5],-1.*[1,1,1],{'-5','0','5'},...
    'HorizontalAlignment','right','rotation',35,'fontsize',15);



更多推荐