发布网友
共1个回答
热心网友
clear;
clc;
x = -4:0.2:4;
y = sin(x);
plot(x,y,'b');
hold on
y = (x.^2)/4;
plot(x,y,'r');
xlabel('x');
ylabel('y');
title('myhelp by cxd1301')
legend('y=sin(x)','y=(x^2)/4','Location','Best')