x=[0:0.5:20];
y=(x.^7)-(6*x.^5)+(5*x.^3)-(4*x.^2)+3;
plot(x,y)
xlabel('x')
ylabel('y')
================================================================================
x1=[-pi:0.001:pi];
y1=[cos(x)];
x2=[-pi:0.001:pi];
y2=[cos(2*x)];
x3=[-pi:0.001:pi];
y3=[cos(3*x)];
subplot(1,3,1)
plot(x1,y1)
subplot(1,3,2)
plot(x2,y2)
subplot(1,3,3)
plot(x3,y3)
두문제인데요 한쪽을 주석처리하면 돌아가는데
주석처리를 안하고 동시에 하면 안되서요 ㅠㅠㅠ
알려주세요..
글고 두번째 문제 맞는건가요...