设置图例可以用legend函数,下标用 _(下划线)来表示。
例子:
x = 0:0.01:2*pi;
y1 = sin(x);
y2 = cos(x);
plot(x,y1,x,y2);
legend("y_{1},y_{2}"
设置图例可以用legend函数,下标用 _(下划线)来表示。
例子:
x = 0:0.01:2*pi;
y1 = sin(x);
y2 = cos(x);
plot(x,y1,x,y2);
legend("y_{1},y_{2}"
Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.