# Programas en matlab

Solo disponible en BuenasTareas
• Páginas : 3 (516 palabras )
• Descarga(s) : 0
• Publicado : 23 de noviembre de 2011

Vista previa del texto
PROGRAMAS DE MATLAB ANALISIS NUMERICOS Y VISUALIZACION GRAFICA

>> x= 0:0.05:10;
y= sin(x).*exp(-0.4*x);
plot(x,y)

>> x=(0:0.4:10)';
>> y=sin(x).*exp(-0.4*x);
>>plot(x,y,'+')

>>t=0:.05:pi+.01;
>> y= sin (3*t).*exp(-0.3*t);
>> polar(t,y)

>> t=0:.05:pi+.01;
>> y= sin (3*t).*exp(-0.3*t);
>> polar(t,y)>> title('grafica polar')
>> grid

>> t= .1:.1:3;
>> x= exp(t);
>> y= exp(t.*sinh(t));
>> loglog(x,y)

>> t=.1:.1:3;
semilogy(t,exp(t.*t))>> t=.1:.1:3;
>> semilogx(t,exp(t.*t))

>> x= 0:0.05:5;
>> y= sin(x);
>> z= cos (x);
>> plot(x,y,x,z)

>> plot(x,y,'--',x,z,'*')>> plot(x,y,':',x,z,'*g')
>> plot(x,y,'r',x,z,'y')

>> clear;clf;hold off
>> x=0:0.05: 5;
>> y= sin(x);
>> plot (x,y)
>> hold on>> z=cos(x)

z =

Columns 1 through 5

1.0000 0.9988 0.9950 0.9888 0.9801

Columns 6 through 10

0.9689 0.9553 0.9394 0.9211 0.9004Columns 11 through 15

0.8776 0.8525 0.8253 0.7961 0.7648

Columns 16 through 20

0.7317 0.6967 0.6600 0.6216 0.5817

Columns 21 through 250.5403 0.4976 0.4536 0.4085 0.3624

Columns 26 through 30

0.3153 0.2675 0.2190 0.1700 0.1205

Columns 31 through 35

0.0707 0.0208-0.0292 -0.0791 -0.1288

Columns 36 through 40

-0.1782 -0.2272 -0.2756 -0.3233 -0.3702

Columns 41 through 45

-0.4161 -0.4611 -0.5048 -0.5474 -0.5885Columns 46 through 50

-0.6282 -0.6663 -0.7027 -0.7374 -0.7702

Columns 51 through 55

-0.8011 -0.8301 -0.8569 -0.8816 -0.9041

Columns 56 through 60...