Practica 1 matlab cinematica

Páginas: 4 (888 palabras) Publicado: 29 de agosto de 2010
UNIVERSIDAD NACIONAL AUTÓNOMA DE MÉXICO

CINEMÁTICA Y DINÁMICA

PRÁCTICA NO. 1 MATLAB

PEÑA DE ALBA ALEJANDRO CÉSAR
Cyd39

GRUPO. 10

PROF. CARLOS ALBERTO PINEDA FIGUEROA

26-08-10Desarrollo de la práctica

>> diary('practica.txt')
>> exp(2)/3
ans =
2.4630
>> x=exp(2)/3;
>> x
x =
2.4630
>> x=exp(2)/3
x =
2.4630
>>y=2*x+1
y =
5.9260
>> x=x+1
x =
3.4630
>> x=exp(2)/3; y=2*x+1, z=3*x
y =
5.9260
z =
7.3891
>> helpwin mean
>> ver----------------------------------------------------
MATLAB Version 6.5.0.180913a (R13)
MATLAB License Number: 0
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 3) Java VM Version: Java 1.3.1_01 with SunMicrosystems Inc. Java HotSpot(TM) Client VM
----------------------------------------------------
>> pwd
ans =
C:\MATLAB6p5\work
>> cd ..
>> pwd
ans =
C:\MATLAB6p5
>> cdwork\
>> pwd
ans =
C:\MATLAB6p5\work
>> which hilb
C:\MATLAB6p5\toolbox\matlab\elmat\hilb.m
>> a=[2, 3; 5, -2];
>> b=[4; 6];
>> x=inv(a)*b;
>> x
x =1.3684
0.4211
>> ezplot('sin(x)*exp(x)', 0, 6);
>> grid on;
>> a=[5, 2, -3, 1];
>> x=roots(a)
x =
-1.1060
0.3530 + 0.2371i
0.3530 - 0.2371i>> y=dsolve('Dy-x-y=0', 'y(0)=1', 'x');
>> y
y =
-x-1+2*exp(x)
>> ezplot(y, 0, 2);
>> grid on
>> f=int('x*sin(x)')
f =
sin(x)-x*cos(x)
>> s=int('x*sin(x)', 0,pi)
s =
pi
>> syms x
>> y=x^3-8
y =
x^3-8
>> t=factor(y)
t =
(x-2)*(x^2+2*x+4)

>> e=taylor(exp(x), 5);
>> whos x
Name Size Bytes Class
x1x1 126 sym object
Grand total is 2 elements using 126 bytes
>> whos y
Name Size Bytes Class
y 1x1 134 sym object
Grand total is 6 elements...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Práctica 1 de Matlab
  • Practica 1 cinematica y dinamica
  • Práctica de Cinemática 1
  • Práctica cinemática 1 FI
  • Practica 1 Cinemática y dinamica
  • Practico De Cinemática 1
  • Practica 1 Cinematica
  • Practica 1 cinematica y dinamica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS