Matlab图坐标轴数值负号改为减号(change the hyphen (-) into minus sign (−, “U+2212”))
在MATLAB中,坐标轴负数默认符号是-,如下图所示x=1:1:50;y=sin(x);plot(x,y)可通过以下两语句将负号修改为减号:set(gca,'defaultAxesTickLabelInterpreter','latex');yticklabels(strrep(yticklabels,'-','$-$'));或者set(gca,'TickLabelInterpreter','la