Informatica

Páginas: 11 (2692 palabras) Publicado: 12 de octubre de 2012
Warning: Could not get change notification handle for local C:\Archivos de
programa\MATLAB\R2007b\work.
Performance degradation may occur due to on-disk directory change checking.
>> x=[1,4,5]

x =

1 4 5

>> y=[1,16,25]

y =

1 16 25

>> plot(x,y)
>> A=[1^2,1,0;4^2,4,0;5^2,5,0]

A =

1 1 0
16 4 025 5 0

>> B=[1;16;25]

B =

1
16
25

>> x=A\B
Warning: Matrix is singular to working precision.

x =

NaN
NaN
NaN

>> x=A\B
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 2.114711e-018.

x =

1
0
0

>> A

A =

1 1 1
16 41
25 5 0

>> A

A =

1 1 1
16 4 1
25 5 1

>> x=A\B

x =

1
0
0

>> X=1;0.1;5

ans =

5

>> X=1:0.1:5

X =

Columns 1 through 7

1.0000 1.1000 1.2000 1.3000 1.4000 1.5000 1.6000

Columns 8 through 14

1.7000 1.8000 1.9000 2.00002.1000 2.2000 2.3000

Columns 15 through 21

2.4000 2.5000 2.6000 2.7000 2.8000 2.9000 3.0000

Columns 22 through 28

3.1000 3.2000 3.3000 3.4000 3.5000 3.6000 3.7000

Columns 29 through 35

3.8000 3.9000 4.0000 4.1000 4.2000 4.3000 4.4000

Columns 36 through 41

4.5000 4.6000 4.7000 4.80004.9000 5.0000

>> y=X^2
??? Error using ==> mpower
Matrix must be square.

>> Y=X^2
??? Error using ==> mpower
Matrix must be square.

>> Y=(1:0.1:5)^2
??? Error using ==> mpower
Matrix must be square.

>> Y=X.^2

Y =

Columns 1 through 7

1.0000 1.2100 1.4400 1.6900 1.9600 2.2500 2.5600

Columns 8 through 142.8900 3.2400 3.6100 4.0000 4.4100 4.8400 5.2900

Columns 15 through 21

5.7600 6.2500 6.7600 7.2900 7.8400 8.4100 9.0000

Columns 22 through 28

9.6100 10.2400 10.8900 11.5600 12.2500 12.9600 13.6900

Columns 29 through 35

14.4400 15.2100 16.0000 16.8100 17.6400 18.4900 19.3600

Columns 36 through 4120.2500 21.1600 22.0900 23.0400 24.0100 25.0000

>> plot(X,Y)
>> A=[(-2)^3,(-2)^2,-2,1;(-1)^3,(-1)^2,-1,1;2^3,2^2,2,1;3^3,3^2,3,1]

A =

-8 4 -2 1
-1 1 -1 1
8 4 2 1
27 9 3 1

>> B=[4;6;9;3]

B =

4
6
9
3

>> X=A\B

X =

-0.3000
-0.55002.4500
8.7000

>> x=A\B

x =

-0.3000
-0.5500
2.4500
8.7000

>> X=-2:0.1:3

X =

Columns 1 through 10

-2.0000 -1.9000 -1.8000 -1.7000 -1.6000 -1.5000 -1.4000 -1.3000 -1.2000 -1.1000

Columns 11 through 20

-1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000 -0.1000

Columns 21through 30

0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000

Columns 31 through 40

1.0000 1.1000 1.2000 1.3000 1.4000 1.5000 1.6000 1.7000 1.8000 1.9000

Columns 41 through 50

2.0000 2.1000 2.2000 2.3000 2.4000 2.5000 2.6000 2.7000 2.8000 2.9000

Column 513.0000

>> Y=X.^3

Y =

Columns 1 through 10

-8.0000 -6.8590 -5.8320 -4.9130 -4.0960 -3.3750 -2.7440 -2.1970 -1.7280 -1.3310

Columns 11 through 20

-1.0000 -0.7290 -0.5120 -0.3430 -0.2160 -0.1250 -0.0640 -0.0270 -0.0080 -0.0010

Columns 21 through 30

0 0.0010 0.0080 0.0270 0.0640 0.1250 0.2160...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informática
  • Informatica
  • Informatica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS