You are on page 1of 8

>> s=tf('s')

Transfer function:
s
>> [num,den]=pade(12,1)
num =
-1.0000

0.1667

den =
1.0000

0.1667

>> G=(2.77*(-s+0.1667))/((861*s+1)*(s+0.1667))
Transfer function:
-2.77 s + 0.4618
-------------------------861 s^2 + 144.5 s + 0.1667
>> sisotools
??? Undefined function or variable 'sisotools'.
>> sisotool
>> G1=0.2/((5*s+1)*(50*s+1))
Transfer function:
0.2
-----------------250 s^2 + 55 s + 1
>> G2=500/(2500*s+1)
Transfer function:
500
---------2500 s + 1
>> G3=series(G1,G2)
Transfer function:
100
-----------------------------------625000 s^3 + 137750 s^2 + 2555 s + 1
>> maargin(G3)
??? Undefined function or method 'maargin' for input arguments of type 'tf'.
>> margin(G3)
>> C=2.3446*(s+0.14898)/(s+0.1542744)
Transfer function:
2.345 s + 0.3493
---------------s + 0.1543
>> C=0.4573*(s+0.14898)/(s+0.1542744)

Transfer function:
0.4573 s + 0.06813
-----------------s + 0.1543
>> C=0.4573*(s+0.01375)/(s+0.01424)
Transfer function:
0.4573 s + 0.006288
------------------s + 0.01424
>> bandwith(G3)
??? Undefined function or method 'bandwith' for input arguments of type 'tf'.
>> bandwidth(G3)
ans =
3.9889e-004
>> bandwidth(series(C,G3))
ans =
3.9891e-004
>> A=[-0.00636 -7.0225*10^(-4);1 0]
A =
-0.0064
1.0000

-0.0007
0

>> B=[1;0]
B =
1
0
>> C=[0 7.0225*10^(-6)]
C =
1.0e-005 *
0

0.7023

>> D=[0]
D =
0
>> tt2ss(A,B,C,D)
??? Undefined function or method 'tt2ss' for input arguments of type
'double'.

>> C=[0 7.0225*10^(-6)]


C =
1.0e-005 *
0

0.7023

>> Q=[1 2]
Q =
1

>> Q=[0 7.0225*10^(-6)]


Q =
1.0e-005 *
0

0.7023

>> tt2ss(A,B,C,Q)
??? Undefined function or method 'tt2ss' for input arguments of type
'double'.
>> tt2ss(A,B,C)
??? Undefined function or method 'tt2ss' for input arguments of type
'double'.
>> help tt2ss
tt2ss 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 help
HELP Display help text in Command Window.
HELP, by itself, lists all primary help topics. Each primary topic
corresponds to a directory name on the MATLABPATH.
HELP / lists a description of all operators and special characters.
HELP FUN displays a description of and syntax for the function FUN.
When FUN is in multiple directories on the MATLAB path, HELP displays
information about the first FUN found on the path.
HELP PATHNAME/FUN displays help for the function FUN in the PATHNAME
directory. Use this syntax to get help for overloaded functions.
HELP MODELNAME.MDL displays the complete description for the MDL-file
MODELNAME as defined in Model Properties > Description. If Simulink
is installed, you do not need to specify the .mdl extension.
HELP DIR displays a brief description of each function in the MATLAB
directory DIR. DIR can be a relative partial pathname (see HELP
PARTIALPATH). When there is also a function called DIR, help for both
the directory and the function are provided.

HELP CLASSNAME.METHODNAME displays help for the method METHODNAME of


the fully qualified class CLASSNAME. To determine CLASSNAME for
METHODNAME, use CLASS(OBJ), where METHODNAME is of the same class as
the object OBJ.
HELP CLASSNAME displays help for the fully qualified class CLASSNAME.
HELP('syntax') displays help describing the syntax used in MATLAB
commands and functions.
T = HELP(TOPIC) returns the help text for TOPIC as a string, with
each line separated by \n. TOPIC is any allowable argument for HELP.
REMARKS:
1. Use MORE ON before running HELP to pause HELP output after a
screenful of text displays.
2. In the help syntax, function names are capitalized to make them
stand out. In practice, always type function names in lowercase. For
functions that are shown with mixed case (for example, javaObject)
type the mixed case as shown.
3. Use DOC FUN to display help about the function in the Help
browser, which might provide additional information, such as graphics
and more examples.
4. Use DOC HELP for information about creating help for your own
M-files.
5. Use HELPBROWSER to access online documentation in the Help
browser. Use the Help browser Index or Search tabs to find more
information about TOPIC or other terms.
EXAMPLES:
help close - displays help for the CLOSE function.
help database/close - displays help for the CLOSE function in the
Database Toolbox.
help database - lists all functions in the Database Toolbox and
displays help for the DATABASE function.
help general - lists all functions in the directory MATLAB/GENERAL.
help f14_dap - displays the description of the Simulink f14_dap.mdl
model file (Simulink must be installed).
t = help('close') - gets help for the function CLOSE and stores it as
a string in t.
See also doc, docsearch, helpbrowser, helpwin, lookfor, matlabpath,
more, partialpath, which, whos, class.
Overloaded methods:
cgmathsobject/help
cvtest/help
cvdata/help
fdesign.help
Reference page in Help browser
doc help
>> help t2s
T2S Convert T-parameters to S-parameters.
S_PARAMS = T2S(T_PARAMS) converts the chain scattering parameters
T_PARAMS into the scattering parameters S_PARAMS.
S_PARAMS is a complex 2x2xM array, representing M two-port S-parameters.
T_PARAMS is a complex 2x2xM array, representing M two-port T-parameters.

See also abcd2s, y2s, z2s, h2s, s2t


Reference page in Help browser
doc t2s
>> t2s(A,B,C,D)
??? Error using ==> t2s
Too many input arguments.
>> t2s(A,B,C)
??? Error using ==> t2s
Too many input arguments.
>> t2s(A,B)
??? Error using ==> t2s
Too many input arguments.
>> tf2sss(A,B,C,D)
??? Undefined function or method 'tf2sss' for input arguments of type
'double'.
>> tf2ss(A,B,C,D)
??? Error using ==> tf2ss
Too many input arguments.
>> tf2ss(A,B,C)
??? Error using ==> tf2ss
Too many input arguments.
>> tf2ss(A,B)
ans =
0
>> [A,B,C,D] = tf2ss(b,a)
??? Undefined function or variable 'b'.
>> syms a
>> [b,a] = ss2tf(A,B,C,D)
b =
1.0e-005 *
0

0.0000

0.7023

1.0000

0.0064

0.0007

a =

>> z=b/a
z =
4.9313e-009
>> nyquist(z)

??? Error using ==> nyquist at 70


Not enough input arguments.
>> nyquist(G)
>> I=eye(size(A))
I =
1
0

0
1

>> syms s
>> aux=inv(s*I-A)
aux =
[ (28823037615171174400000*s)/(28823037615171174400000*s^2
84*s + 20240978165253959375),
5/(28823037615171174400000*s^2 + 183314519232488669184*s +
]
[
28823037615171174400000/(28823037615171174400000*s^2
84*s + 20240978165253959375), (28823037615171174400000*s +
)/(28823037615171174400000*s^2 + 183314519232488669184*s +
]

+ 1833145192324886691
-2024097816525395937
20240978165253959375)
+ 1833145192324886691
183314519232488669184
20240978165253959375)

>> aux1=C*aux*B
aux1 =
6477113012881265625/(32*(28823037615171174400000*s^2 + 183314519232488669184*s +
20240978165253959375))
>> nyquist(aux1)
??? Error using ==> nyquist at 70
Not enough input arguments.
>> P=6477113012881265625/(32*(28823037615171174400000*s^2 + 18331451923248866918
4*s + 20240978165253959375))
P =
6477113012881265664/(922337203685477580800000*s^2 + 5866064615439637413888*s + 6
47711301288126709760)
>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.
>> P=1/(32*(28823037615171174400000*s^2 + 183314519232488669184*s + 202409781652
53959375))
P =
1/(922337203685477580800000*s^2 + 5866064615439637413888*s + 6477113012881267097
60)
>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.

>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.
>> roots([28823037615171174400000 5866064615439637413888 647711301288126709760])
ans =
-0.1018 + 0.1101i
-0.1018 - 0.1101i
>> eig(A)
ans =
-0.0032 + 0.0263i
-0.0032 - 0.0263i
>> ss2tf(A,B,C,D)
ans =
1.0e-005 *
0

0.0000

0.7023

>> [b,a] = ss2tf(A,B,C,D,iu)


??? Undefined function or variable 'iu'.
>> [b,a] = ss2tf(A,B,C,D,)
??? [b,a] = ss2tf(A,B,C,D,)
|
Error: Unbalanced or unexpected parenthesis or bracket.
>> [b,a] = ss2tf(A,B,C,D)
b =
1.0e-005 *
0

0.0000

0.7023

1.0000

0.0064

0.0007

a =

>> P=(0.7023*10^(-5))/(s^(2)+0.0064*s+0.007)
P =
8291294952298379/(1180591620717411303424*(s^2 + (4*s)/625 + 7/1000))
>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.
>> P=(0.7023*10^(-5))/(s*s+0.0064*s+0.007)
P =

8291294952298379/(1180591620717411303424*(s^2 + (4*s)/625 + 7/1000))


>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.
>> P=(0.00007023)/(s*s+0.0064*s+0.007)
P =
5182059345186487/(73786976294838206464*(s^2 + (4*s)/625 + 7/1000))
>> nyquist(P)
??? Error using ==> nyquist at 70
Not enough input arguments.
>>

You might also like