You are on page 1of 4

# Grafica 3

clear all
clc
format short g
x=-pi:pi;
y1=sin(x);
plot(x,y1)
y2=sin(2*x);
hold on;
plot(x,y2)
y3=sin(3*x);
hold on;
plot(x,y3);
hold off

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

-3

-2

-1

Graficas 9 y 10
clear all
clc
format short g
x=[1 2 3 4 5 6 7 8 9 10 11 12];
Y=[x;1:12];
subplot(2,2,1)
bar(x),title('una grafica de barras del vector x')
subplot(2,2,2)
y=[1 2 3 4 5 6 7 8 9 10 11 12];
x=[Y;1:12];
bar(y),title('una grafica de barras de la matriz y')
subplot(2,2,3)
bar3(y),title('una grafica de barras tridimensional')
subplot(2,2,4)
pie(x),title('una grafica de pastel de x')

15

## una grafica de barras de la matriz y

15

10

10

1 2 3 4 5 6 7 8 9101112

## una grafica de barras tridimensional

20
10
0
12
34
56
78
9
10
11
12

1 2 3 4 5 6 7 8 9 101112
una grafica de pastel de x
<<<1%
<<1%
1%
1%
1%
1%
5%
<
1%
1%
1%
5%
2%
2%
2%
5%
2%
2%
5%
2%
3%
5%
3%
3%
5%
3%
3%
4%
3%
4%
3%
4%
3%3%
4%4%4%

Grafica 13-c
clear all
format short g
clc
t = 0:.01:2*pi;
f = ( sin(t) .* sqrt(abs(cos(t))) ) ./ (sin(t) + 7/5) - 2 .* sin(t) + 2;
polar(t,f)
set(findobj('Type','line'),'Color',[.31 .4 .58],'Linewidth', 2);

90

120

60
3
2

150

30

180

210

330

240

300
270

Grafica 13-t
clear all
clc
format short g
t = 0 : .01 : pi;
r = 8 ./ (2 - cos(t));
figure(1)
polar(t, r)
t = 0 : .01 : 2*pi;
r = sin(4*t);
figure(2)
polar(t, r)

90

120

60
0.8
0.6

150

30
0.4
0.2

180

210

330

240

300
270