# set the value of the variable in Transfer Function????

10 Ansichten (letzte 30 Tage)
Stephan am 25 Nov. 2012
Hi guys,
I have some problems with my transfer function. My Transfer Function is a 2x2 matrix. The variable is 's'.
Looks like this:
Gtf = [s/s+1 s+2; s-3/s+4 s+1]
Now I would like to get Gtf(5) (set s=5) to perform the Singular Value Decomposition with that matrix. I would like MATLAB to show me the following:
Gtf = [5/6 7; 2/9 6]
How can i get there?
So my problem is: how can I set the variable of the transfer function matrix to a value?
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Jonathan Epperl am 25 Nov. 2012
That is what the functions freqresp and evalfr are for. In your case:
evalfr(Gtf,5)
However, I hope you just forgot the () in your example, i.e. in your real code it is s/(s+1) and not s/s+1 etc.
##### 1 Kommentar-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden
Stephan am 28 Nov. 2012
Thank you very much!

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Dynamic System Models finden Sie in Help Center und File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by