Matlab设置网格线密度(坐标精度)1.不精确set(gca,'XMinorTick','on') 这样的话知识x轴显示了细的密度,网格线并没有变。2.精确 set(gca,'xtick',-1:0.1:1); set(gca,'ytick',-1:0.1:1);