Você está na página 1de 3

clc

clear all
close all
x=0:0.1.*pi:2*pi;
y=sin(x);
plot(x,y)
grid on
title('Curva')
xlabel('Variable independiente')
ylabel('Seno (x)')
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1

clc
clear all
close all
x=0:0.1.*pi:2.*pi
y1=sin(x);
y2=cos(x);
plot (x,y1,x,y2)
grid on

1
0.8
0.6
0.4

Curva

0.2

Seno (x)

0
0.8
-0.2
0.6
-0.4
0.4
-0.6
0.2
-0.8

-1

0
-0.2

-0.4

clc -0.6
clear all
-0.8 all
close
x=0:0.1.*pi:2.*pi
-1
0
1
2
3
4
y1=sin(x);
Variable independiente
y2=cos(x);
plot (x,y1,'--r',x,y2,':g')
grid on

1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1

clc
clear all

close all
x=0:0.1.*pi:2.*pi
y1=sin(x);
y2=cos(x);
plot (x,y1,'--r',x,y2,':g')
legend('sen(x)','cos(x)')
grid on
1
sen(x)
cos(x)

0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1

Você também pode gostar