You are on page 1of 19

MATLAB desktop keyboard shortcuts, such as Ctrl+S, are now customizable.

In addition, many keyboard shortcuts have changed for improved consistency


across the desktop.

To customize keyboard shortcuts, use Preferences. From there, you can also
restore previous default settings by selecting "R2009a Windows Default Set"
from the active settings drop-down list. For more information, see Help.

Click here if you do not want to see this message again.

>> simulink
>> help power_analize

power_analize not found.

Use the Help browser Search tab to search the documentation, or


type "help help" for help command options, such as help for methods.

>> help power_analyze


POWER_ANALYZE Analyze a circuit built with SimPowerSystems.

SPS = POWER_ANALYZE('SYS','structure') creates a structure array with


fields and values describing the SimPowerSystems diagram 'SYS'.

SPS = POWER_ANALYZE('SYS','sort') return a structure array with specific


fields related to the interconnection of SimPowerSystems blocks.

[A,B,C,D,x0,STATES,INPUTS,OUTPUTS,USS,XSS,YSS,FREQYSS,HLIN] =
POWER_ANALYZE('SYS') computes the equivalent state-space model and
returns
the information into separate variables.

POWER_ANALYZE('SYS','net') generates a netlist stored in a file SYS.net.


This file contains the node numbers generated by POWER_ANALYZE, parameter
values of all linear elements and switches, as well as the list of outputs.

If you have the Control System Toolbox installed, SPS =


POWER_ANALYZE('SYS','ss')
creates a continuous state-space model of 'SYS'. The output SPS is a SS object.

SPS = POWER_ANALYZE('SYS','detailed') returns a more detailed structure


with internal data informations.

See also power_statespace

>> [A,B,C,D]=power_analyze('RC')

A=

-1.0000e-009

B=

1.0000e-009

C=
1

D=

>> s1=ss(A,B,C,D)

a=
x1
x1 -1e-009

b=
u1
x1 1e-009

c=
x1
y1 1

d=
u1
y1 0

Continuous-time model.
>> G=tf(s1)

Transfer function:
1e-009
----------
s + 1e-009

>> [A,B,C,D]=power_analyze('RC')

A=

-1000

B=

1000

C=

D=

>> s2=ss(A,B,C,D)

a=
x1
x1 -1000
b=
u1
x1 1000

c=
x1
y1 1

d=
u1
y1 0

Continuous-time model.
>> H=tf(s1)

Transfer function:
1e-009
----------
s + 1e-009

>> J=tf(s2)

Transfer function:
1000
--------
s + 1000

>> t=(0,1e-3,2e-3,3e-3,4e-3,5e-3)
??? t=(0,1e-3,2e-3,3e-3,4e-3,5e-3)
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> t=[0,1e-3,2e-3,3e-3,4e-3,5e-3]

t=

0 0.0010 0.0020 0.0030 0.0040 0.0050

>> step(5*J)
>> [y,T]=step(5*J,t)

y=

0
3.1606
4.3233
4.7511
4.9084
4.9663

T=

0
0.0010
0.0020
0.0030
0.0040
0.0050
>> [y,T]=step(5*J)

y=

0
0.2555
0.4980
0.7281
0.9464
1.1536
1.3501
1.5367
1.7137
1.8816
2.0410
2.1922
2.3357
2.4719
2.6011
2.7237
2.8400
2.9504
3.0552
3.1545
3.2489
3.3384
3.4233
3.5039
3.5803
3.6529
3.7217
3.7870
3.8490
3.9079
3.9637
4.0166
4.0669
4.1146
4.1598
4.2028
4.2435
4.2822
4.3189
4.3537
4.3867
4.4180
4.4478
4.4760
4.5028
4.5282
4.5523
4.5752
4.5969
4.6175
4.6371
4.6556
4.6732
4.6899
4.7058
4.7208
4.7351
4.7486
4.7614
4.7736
4.7852
4.7962
4.8066
4.8165
4.8259
4.8348
4.8432
4.8512
4.8588
4.8660
4.8729
4.8794
4.8855
4.8914
4.8969
4.9022
4.9072
4.9120
4.9165
4.9207
4.9248
4.9286
4.9323
4.9357
4.9390
4.9421
4.9451
4.9479
4.9506
4.9531
4.9555
4.9578
4.9599
4.9620
4.9639
4.9658
4.9675
4.9692
4.9707
4.9722
4.9737
4.9750
4.9763
4.9775
4.9786
4.9797
4.9808
4.9818
4.9827
4.9836
4.9844
4.9852
4.9860
4.9867
4.9874
T=

0
0.0001
0.0001
0.0002
0.0002
0.0003
0.0003
0.0004
0.0004
0.0005
0.0005
0.0006
0.0006
0.0007
0.0007
0.0008
0.0008
0.0009
0.0009
0.0010
0.0010
0.0011
0.0012
0.0012
0.0013
0.0013
0.0014
0.0014
0.0015
0.0015
0.0016
0.0016
0.0017
0.0017
0.0018
0.0018
0.0019
0.0019
0.0020
0.0020
0.0021
0.0022
0.0022
0.0023
0.0023
0.0024
0.0024
0.0025
0.0025
0.0026
0.0026
0.0027
0.0027
0.0028
0.0028
0.0029
0.0029
0.0030
0.0030
0.0031
0.0031
0.0032
0.0033
0.0033
0.0034
0.0034
0.0035
0.0035
0.0036
0.0036
0.0037
0.0037
0.0038
0.0038
0.0039
0.0039
0.0040
0.0040
0.0041
0.0041
0.0042
0.0042
0.0043
0.0044
0.0044
0.0045
0.0045
0.0046
0.0046
0.0047
0.0047
0.0048
0.0048
0.0049
0.0049
0.0050
0.0050
0.0051
0.0051
0.0052
0.0052
0.0053
0.0054
0.0054
0.0055
0.0055
0.0056
0.0056
0.0057
0.0057
0.0058
0.0058
0.0059
0.0059
0.0060

>> step(5*J)
>> help step
STEP Step response of LTI models.

STEP(SYS) plots the step response of the LTI model SYS (created
with either TF, ZPK, or SS). For multi-input models, independent
step commands are applied to each input channel. The time range
and number of points are chosen automatically.

STEP(SYS,TFINAL) simulates the step response from t=0 to the


final time t=TFINAL. For discrete-time models with unspecified
sampling time, TFINAL is interpreted as the number of samples.

STEP(SYS,T) uses the user-supplied time vector T for simulation.


For discrete-time models, T should be of the form Ti:Ts:Tf
where Ts is the sample time. For continuous-time models,
T should be of the form Ti:dt:Tf where dt will become the sample
time for the discrete approximation to the continuous system. The
step input is always assumed to start at t=0 (regardless of Ti).

STEP(SYS1,SYS2,...,T) plots the step response of multiple LTI


models SYS1,SYS2,... on a single plot. The time vector T is
optional. You can also specify a color, line style, and marker
for each system, as in
step(sys1,'r',sys2,'y--',sys3,'gx').

[Y,T] = STEP(SYS) returns the output response Y and the time


vector T used for simulation. No plot is drawn on the screen.
If SYS has NY outputs and NU inputs, and LT = length(T), Y is an
array of size [LT NY NU] where Y(:,:,j) gives the step response
of the j-th input channel.
[Y,T,X] = STEP(SYS) also returns, for a state-space model SYS, the
state trajectory X, a LT-by-NX-by-NU array if SYS has NX states.

See also impulse, initial, lsim, ltiview, ltimodels.

Overloaded methods:
lti/step
idmodel/step
idfrd/step
iddata/step
idnlmodel/step
uss/step

Reference page in Help browser


doc control/step

>> impulse(5*J,t)
>> impulse(5*J)
>> J

Transfer function:
1000
--------
s + 1000

>> Ve=tf(1,[1,0])

Transfer function:
1
-
s

>> J2=J*Ve

Transfer function:
1000
------------
s^2 + 1000 s

>> impulse(5*J2)
>> impulse(5*J,t)
>> impulse(5*J2,t)
>> Ve=tf(1,[1,0,0])

Transfer function:
1
---
s^2

>> J2=J*Ve

Transfer function:
1000
--------------
s^3 + 1000 s^2

>> impulse(5*J2,t)
>> Ve=tf((1e3,[1,0,1e6])
??? Ve=tf((1e3,[1,0,1e6])
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> Ve=tf(1e3,[1,0,1e6])

Transfer function:
1000
-----------
s^2 + 1e006

>> J2=J*Ve

Transfer function:
1e006
--------------------------------
s^3 + 1000 s^2 + 1e006 s + 1e009

>> impulse(5*J2,t)
>> impulse(5*J2)
>> Ve=tf(10,[1,0,100])

Transfer function:
10
---------
s^2 + 100

>> J2=Ve*J

Transfer function:
10000
-------------------------------
s^3 + 1000 s^2 + 100 s + 100000

>> impulse(5*J2)
>> Ve=tf(1e5,[1,0,1e10])

Transfer function:
100000
-----------
s^2 + 1e010

>> J2=J*Ve

Transfer function:
1e008
--------------------------------
s^3 + 1000 s^2 + 1e010 s + 1e013

>> impulse(5*J2)
>> J

Transfer function:
1000
--------
s + 1000

>> bode(J)

You might also like