Mathematica中文论坛-非官方's Archiver
Mathematica中文论坛-非官方
›
乱七八糟
› 豆粑粑 matlab 画图 轴过原点
meatball1982
发表于 2017-2-22 07:35:17
豆粑粑 matlab 画图 轴过原点
之前一直是重新画两根线,现在,很容易设定了。
注意,是2016a上啊。
x = linspace(-pi,pi);
y = sin(x);
plot(x,y)
ax = gca;
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
grid on
页:
[1]
查看完整版本:
豆粑粑 matlab 画图 轴过原点