Está en la página 1de 20

22/04/16 04:06 PM

>>
>>
>>
>>

MATLAB Command Window

1 of 20

plot(tiempo, Temperatura)
plot(tiempo(40:end), Temperatura(40:end))
ident
Volt=127*ones(1, 607)

Volt =
Columns 1 through 17
127

127

127

127
127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

Columns 18 through 34
127

127

127

127
127

127

127

Columns 35 through 51
127

127

127

127
127

127

127

Columns 52 through 68
127

127

127

127
127

127

127

Columns 69 through 85
127

127

127

127
127

127

127

Columns 86 through 102


127

127

127

127
127

127

127

Columns 103 through 119


127

127

127

127
127

127

127

Columns 120 through 136


127
127

127

127
127

127

127

Columns 137 through 153


127
127

127

127
127

127

127

Columns 154 through 170


127

127

127

127

22/04/16 04:06 PM
127

127

MATLAB Command Window

2 of 20

127

Columns 171 through 187


127

127

127

127
127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

Columns 188 through 204


127

127

127

127
127

127

127

Columns 205 through 221


127

127

127

127
127

127

127

Columns 222 through 238


127

127

127

127
127

127

127

Columns 239 through 255


127

127

127

127
127

127

127

Columns 256 through 272


127

127

127

127
127

127

127

Columns 273 through 289


127

127

127

127
127

127

127

Columns 290 through 306


127

127

127

127
127

127

127

Columns 307 through 323


127
127

127

127
127

127

127

Columns 324 through 340


127
127

127

127
127

127

127

Columns 341 through 357


127

127

127

127

22/04/16 04:06 PM
127

127

MATLAB Command Window

3 of 20

127

Columns 358 through 374


127

127

127

127
127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

Columns 375 through 391


127

127

127

127
127

127

127

Columns 392 through 408


127

127

127

127
127

127

127

Columns 409 through 425


127

127

127

127
127

127

127

Columns 426 through 442


127

127

127

127
127

127

127

Columns 443 through 459


127

127

127

127
127

127

127

Columns 460 through 476


127

127

127

127
127

127

127

Columns 477 through 493


127

127

127

127
127

127

127

Columns 494 through 510


127
127

127

127
127

127

127

Columns 511 through 527


127
127

127

127
127

127

127

Columns 528 through 544


127

127

127

127

22/04/16 04:06 PM
127

127

MATLAB Command Window

4 of 20

127

Columns 545 through 561


127

127

127

127
127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

127

Columns 562 through 578


127

127

127

127
127

127

127

Columns 579 through 595


127

127

127

127
127

127

127

Columns 596 through 607


127

127

127

127

>> Volt=127*ones(607, 1);


>> T=Temperatura(40:end);
>> V=Volt(40:end)
V =
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

5 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

6 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

7 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

8 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

9 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

10 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

11 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

12 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127

MATLAB Command Window

13 of 20

22/04/16 04:06 PM
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
127
>>
>>
>>
>>

ident
V1=[zeros(39, 1); V];
ident
Kp=0.75477

Kp =
0.7548

MATLAB Command Window

14 of 20

22/04/16 04:06 PM

MATLAB Command Window

>> Tpl=52.027
Tpl =
52.0270
>> Td=2.381
Td =
2.3810
>> F=(Kp/(1+Tp1*s))*exp(-Td*s)
Undefined function or variable 'Tp1'.
Did you mean:
>> F=(Kp/(1+Tpl*s))*exp(-Td*s)
Undefined function or variable 's'.
>> G(s)
Undefined function or variable 's'.
>> G
Undefined function or variable 'G'.
>> G=tf([kp*exp(-Td),0],[1 Tpl])
Undefined function or variable 'kp'.
Did you mean:
>> G=tf([Kp*exp(-Td),0],[1 Tpl])
G =
0.06978 s
--------s + 52.03
Continuous-time transfer function.
>> step(G)
>> G=tf(Kp*exp[-Td,0],[1 Tpl])
G=tf(Kp*exp[-Td,0],[1 Tpl])
|
Error: Unbalanced or unexpected parenthesis or bracket.
>>
>>
>> g=
g=
|
Error: Expression or statement is incomplete or incorrect.
>> =
=
|

15 of 20

22/04/16 04:06 PM

MATLAB Command Window

16 of 20

Error: The expression to the left of the equals sign is not a valid target for
an assignment.
>> G=tf([Kp],[1 Tpl],'outputdelay',Td)
G =
0.7548
exp(-2.38*s) * --------s + 52.03
Continuous-time transfer function.
>> step(G)
>> G=tf([Kp],[Tpl 1],'outputdelay',Td)
G =
0.7548
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> step(G)
>> step(G*127)
>> 22
ans =
22
>>
>> 95.7-22
ans =
73.7000
>> K=95.7/73.7
K =
1.2985
>> K=73.7/95.7
K =
0.7701
>> step(G*127*K)
>> G=tf([Kp*K],[Tpl 1],'outputdelay',Td)
G =

22/04/16 04:06 PM

MATLAB Command Window

0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> grid
>> K1=34.5
K1 =
34.5000
>> F=tf([34.5 287.5 5.98958],[1 0])
F =
34.5 s^2 + 287.5 s + 5.99
------------------------s
Continuous-time transfer function.
>> step(G*F)
>> G
G =
0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> step(G)
>> step(G*127*K*F)
>>
>> G=tf([Kp*K],[Tpl 1],'outputdelay',Td)
G =
0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> step(F)
Error using DynamicSystem/step (line 95)
Cannot simulate the time response of models with more zeros than poles.
>> Kp
Kp =

17 of 20

22/04/16 04:06 PM

MATLAB Command Window

0.7548
>> K1
K1 =
34.5000
>> G
G =
0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> step(G)
>> step(G*127)
>> F
F =
34.5 s^2 + 287.5 s + 5.99
------------------------s
Continuous-time transfer function.
>> step(G*F*127)
>> F=tf([34.5 28.75 5.98958],[1 0])
F =
34.5 s^2 + 28.75 s + 5.99
------------------------s
Continuous-time transfer function.
>>
>>
>>
>>

step(G*127*F)
step(G)
step(G*127)
F

F =
34.5 s^2 + 28.75 s + 5.99
------------------------s
Continuous-time transfer function.

18 of 20

22/04/16 04:06 PM

MATLAB Command Window

>> step(F*G*127)
>> step(F)
Error using DynamicSystem/step (line 95)
Cannot simulate the time response of models with more zeros than poles.
>> Kp
Kp =
0.7548
>> K
K =
0.7701
>> Tpl
Tpl =
52.0270
>> Td
Td =
2.3810
>> tf([0.7548*0.7701],[52.0270 1],'outputdelay',2.3810)
ans =
0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> G=tf([Kp*K],[Tpl 1],'outputdelay',Td)
G =
0.5813
exp(-2.38*s) * ----------52.03 s + 1
Continuous-time transfer function.
>> STEP(G*127)
Cannot find an exact (case-sensitive) match for 'STEP'
The closest match is: step in C:\Program Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\control\ctrlobsolete\step.m

19 of 20

22/04/16 04:06 PM

MATLAB Command Window

Did you mean:


>> step(G*127)
>> STEP(g)
Undefined function or variable 'g'.
Did you mean:
>> step(G)
>> step(G)
>> step(G*127)
>>

20 of 20

También podría gustarte