x=0:0.1:40;
y=sin(x);
plot(x,y,'b-.','LineWidth',2);
hold on
plot(x,y,'go','MarkerSize',8,'MarkerFaceColor','r');
title('对画线的增强控制实例')
xlabel('x');
ylabel('y');
grid on
结构如图所示: