graficas matlab parte 3

13

Upload: kevin-fasanando-paucar

Post on 27-Oct-2015

144 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Graficas Matlab Parte 3
Page 2: Graficas Matlab Parte 3

>> >> 5+3*sen(45)

>> 5+3*sen(45)

|

Error: Unexpected MATLAB operator.

>> 5+3*sin(45}

5+3*sin(45}

|

Error: Unbalanced or unexpected parenthesis or bracket.

>> 5+3*sind(45)

ans =

Page 3: Graficas Matlab Parte 3

7.1213

>> g1=tf([5 3],[3 2 2])

g1 =

5 s + 3

---------------

3 s^2 + 2 s + 2

Continuous-time transfer function.

>> g1=tf(1.5,1)

g1 =

1.5

Static gain.

>> g2=tf([1],[8,0])

g2 =

Page 4: Graficas Matlab Parte 3

1

---

8 s

Continuous-time transfer function.

>> g3=tf(8,1)

g3 =

8

Static gain.

>> g4=tf([1],[1.5,0,21.5])

g4 =

1

--------------

1.5 s^2 + 21.5

Continuous-time transfer function.

>> g5=tf(88,0)

Page 5: Graficas Matlab Parte 3

Error using tf (line 279)

The denominators specified in the "den" property must be nonzero vectors.

try open('>> g5=tf(88,0)

|

Error: A MATLAB string constant is not terminated properly.

>> deleteg5

Undefined function or variable 'deleteg5'.

>> delete g5

Warning: File 'g5' not found.

>> g5=tf([88,0])

g5 =

From input 1 to output:

88

From input 2 to output:

0

Static gain.

>> g5=tf([88],[0])

Page 6: Graficas Matlab Parte 3

Error using tf (line 279)

The denominators specified in the "den" property must be nonzero vectors.

>> g5=tf([88,0],[1])

g5 =

88 s

Continuous-time transfer function.

>> n=conv(g1,conv(g2,conv(g3,g4)))

Error using InputOutputModel/subsref (line 44)

Use two or more subscripts to select or delete all elements, as in the "sys(:,:)" command.

Error in conv (line 39)

c = conv2(a(:),b(:),shape);

>> G1*G2

Undefined function or variable 'G1'.

Did you mean:

>> g1*g2

ans =

Page 7: Graficas Matlab Parte 3

1.5

---

8 s

Continuous-time transfer function.

>> g1*g2*g3*g4

ans =

12

--------------

12 s^3 + 172 s

Continuous-time transfer function.

>> A=g1*g2*g3*g4

A =

12

--------------

12 s^3 + 172 s

Page 8: Graficas Matlab Parte 3

Continuous-time transfer function.

>> 1+g1*g2*g3*g4*g5

ans =

12 s^3 + 1228 s

---------------

12 s^3 + 172 s

Continuous-time transfer function.

>> B=

B=

|

Error: Expression or statement is incomplete or incorrect.

>> B =

B =

|

Error: Expression or statement is incomplete or incorrect.

>> B=1+g1*g2*g3*g4*g5

B =

Page 9: Graficas Matlab Parte 3

12 s^3 + 1228 s

---------------

12 s^3 + 172 s

Continuous-time transfer function.

>> A/B

ans =

144 s^3 + 2064 s

--------------------------------

144 s^6 + 16800 s^4 + 211216 s^2

Continuous-time transfer function.

>> stepplot(g5)

Error using DynamicSystem/stepplot (line 113)

Cannot simulate the time response of models with more zeros than poles.

>> STEPPLOT( 144 s^3 + 2064 s

--------------------------------

144 s^6 + 16800 s^4 + 211216 s^2)

STEPPLOT( 144 s^3 + 2064 s

Page 10: Graficas Matlab Parte 3

|

Error: Unexpected MATLAB expression.

>> stepplot(g5)

Error using DynamicSystem/stepplot (line 113)

Cannot simulate the time response of models with more zeros than poles.

>> C=A/B

C =

144 s^3 + 2064 s

--------------------------------

144 s^6 + 16800 s^4 + 211216 s^2

Continuous-time transfer function.

>> inpulse(C)

Undefined function 'inpulse' for input arguments of type 'tf'.

Did you mean:

>> impulse(C)

>> TIEMPO=0:0.001:0.02;

>> impulse(C,TIEMPO)

>> step(C)

Page 11: Graficas Matlab Parte 3

>> D=C*10

D =

1440 s^3 + 20640 s

--------------------------------

144 s^6 + 16800 s^4 + 211216 s^2

Continuous-time transfer function.

>> step(D,TIEMPO)

>> TIEMPO2=0:0.006:0.02;

>> step(D,TIEMPO2)

>> F=tf([1],[1,0,36])

F =

1

--------

s^2 + 36

Continuous-time transfer function.

>> G=30*F*C

Page 12: Graficas Matlab Parte 3

G =

4320 s^3 + 61920 s

-----------------------------------------------

144 s^8 + 21984 s^6 + 816016 s^4 + 7.604e06 s^2

Continuous-time transfer function.

>> inpulse(G)

Undefined function 'inpulse' for input arguments of type 'tf'.

Did you mean:

>> impulse(G)

>> impulse(G,TIEMPO2)

>>