You are on page 1of 6

12: las siguientes funciones son ecuaciones para graficar en coordenadas polares realice el grafico

en el rango indicado.

1) >> x=[-2*pi:1:2*pi]

x = Columns 1 through 10

-6.2832 -5.2832 -4.2832 -3.2832 -2.2832 -1.2832 -0.2832 0.7168 1.7168 2.7168

Columns 11 through 13

3.7168 4.7168 5.7168

>> y=sin(x)+(sin(5.*x./2).^3)

y = Columns 1 through 10

0.0000 0.6271 1.7911 -0.6842 -0.5958 -0.9586 -0.5544 1.5856 0.2284 0.5277

Columns 11 through 13

-0.5417 -1.3419 0.4279

>> polar(x,y,'^')

>> grid on

>> title('grafica en coordenadas polares')

>> xlabel('eje x')

>> ylabel('eje y')


2) >> x=[-2*pi:0.5:2*pi]

x = -6.2832 -5.7832 -5.2832 -4.7832 -4.2832 -3.7832 -3.2832 -2.7832 -2.2832 -1.7832

-1.2832 -0.7832 -0.2832 0.2168 0.7168 1.2168 1.7168 2.2168 2.7168 3.2168

3.7168 4.2168 4.7168 5.2168 5.7168 6.2168

>> y=sin(x./2)

y = Columns 1 through 10

-0.0000 -0.2474 -0.4794 -0.6816 -0.8415 -0.9490 -0.9975 -0.9840 -0.9093 -0.7781

-0.5985 -0.3817 -0.1411 0.1082 0.3508 0.5716 0.7568 0.8950 0.9775 0.9993

0.9589 0.8589 0.7055 0.5083 0.2794 0.0332

>> polar(x,y,'+')

>> grid on

>> xlabel('eje x')

>> ylabel('eje y')

>> title('grafico de la funcion sin(x/2)')


3) >> x=[-5*pi:2.5:5*pi]

x = -15.7080 -13.2080 -10.7080 -8.2080 -5.7080 -3.2080 -0.7080 1.7920 4.2920 6.7920

9.2920 11.7920 14.2920

>> y=sin(8.*x./5)

y = 0.0000 -0.7568 0.9894 -0.5366 -0.2879 0.9129 -0.9056 0.2709 0.5514 -0.9918

0.7451 0.0177 -0.7683

>> polar(x,y,'p')

>> grid on

>> xlabel('eje x')

>> ylabel('eje y')

>> title('grafico de la funcion sin(8x/5)')


4) >> x=[-2*pi:0.8:2*pi]

x = -6.2832 -5.4832 -4.6832 -3.8832 -3.0832 -2.2832 -1.4832 -0.6832 0.1168 0.9168

1.7168 2.5168 3.3168 4.1168 4.9168 5.7168

>> y=1-4.*cos(5.*x)

y = -3.0000 3.6146 1.5820 -2.3754 4.8306 -0.6323 -0.6967 4.8504 -2.3369 1.5119

3.6678 -2.9994 3.5606 1.6520 -2.4129 4.8097

>> polar(x,y,'*')

>> grid on

>> title('grafico de la funcion 1-4cos(5x)')

>> xlabel('eje x')

>> ylabel('eje y')


5) >> x=[-8*pi:2:8*pi]

x = -25.1327 -23.1327 -21.1327 -19.1327 -17.1327 -15.1327 -13.1327 -11.1327 -9.1327 -


7.1327

-5.1327 -3.1327 -1.1327 0.8673 2.8673 4.8673 6.8673 8.8673 10.8673 12.8673

14.8673 16.8673 18.8673 20.8673 22.8673 24.8673

>> y=x.*sin(x)

y = -0.0000 -21.0345 15.9933 5.3460 -16.9504 8.2325 7.0467 -11.0282 2.6293 5.3566

-4.6859 0.0277 1.0258 0.6613 0.7768 -4.8090 3.7868 4.6915 -10.7779 3.8135

11.0778 -15.4592 0.3340 18.8179 -17.5679 -6.5245

>> polar(x,y,'o')

>> grid on

>> title('grafico de la funcion x sen(x)')

>> xlabel('eje x')

>> ylabel('eje y')

You might also like