Matlab Flashcards

1
Q

How do you find the closed loop TF, Gc(s)

A

Gc=feedback(G*M,1)

This is the TF btw r (target) and y with compensator M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you find poles of a closed-loop system?

A

[poles, zeros]=pzmap(Gc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you find close-loop s-s gain

A

Gc0 = bode(Gc,0)

don’t seem to work, ask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to see figure of o/p response to change in r.

A

step(Gc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to find poles and residues of a fraction (partial fractions)

A

Eg:
num=[10]
den=[ 1 5 6]
[r poles k]= residue(num,den)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to convert back from partial fractions to just one merged fraction?

A

[num den]= residue(r, poles, k)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If G=2 /( s +1 )( s + 5 ) how would you compute it on MATLAB w/out expanding the brackets

A

G= tf ( 2, poly ( [-1 -5] ) )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to find s-s gain

A

g=bode(G,0)

It basically does G(0) for you - pretty sure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to find coefficients of a high order polynomial if don’t want to expand it all yourself? Eg: ( s+1 )( s+5)(2+3)

A

poly( [-1 -5 -3] )

ans= 1 9 23 15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to find roots of a polynomial?

A

roots( [1 5 6] )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

to extract num and den from tf

A

[num den]=tfdata(G,’v’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly