matlab dibujar gráficos de líneas múltiples

%绘制多条折线图
clear
clc
n = 12;
x = 1:n;
C = 10 * rand(n,1);
A = 10 * rand(n,1);
J = 10 * rand(n,1);
figure;
plot(x,C,'s-',x,A,'s-.',x,J,'s--');
legend('C','A','J');

Efecto:

 

Supongo que te gusta

Origin blog.csdn.net/weixin_51229250/article/details/122968984
Recomendado
Clasificación