Need to get matlab to display the continuous time transfer function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Michael Zagar
il 12 Set 2024
Commentato: Les Beckham
il 12 Set 2024
clc;
% (b)
% state variable model
A = [1 3 0; -3 0 7; -5 -4 -8];
B = [-1; 0; 1];
C = [1 0 0];
D = 0;
% get numerator & denominator of transfer function using ss2tf
[num, den] = ss2tf(A,B,C,D);
% converting numerator & denominator to transfer function
system = tf(num,den)
That is my code. Everything works [as] I get the right numerator and denominator.
The problem is the comman window won't display the transfer function and yes, I have the [Control System Toolbox] installed.
0 Commenti
Risposta accettata
Les Beckham
il 12 Set 2024
Modificato: Les Beckham
il 12 Set 2024
Please explain exactly what the problem is. You need the Control System toolbox, not the "command tool box", whatever that is.
A = [1 3 0; -3 0 7; -5 -4 -8];
B = [-1; 0; 1];
C = [1 0 0];
D = 0;
%get numerator & denominator of transfer function using ss2tf
[num, den] = ss2tf(A,B,C,D);
%converting numerator & denominator to transfer function
system = tf(num,den);
display(system)
which display(system)
2 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!