Normalization of symbolic expression
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Arthur Lima
am 5 Mär. 2021
Bearbeitet: Walter Roberson
am 5 Mär. 2021
Hi everyone.
this is the code
syms L R K b J s v
a1 = det ([(L*s+R) (v); (-K) (0)]);
a = det ([(L*s+R) (K); (-K) (J*s+b)]);
g=collect((a1/a)*(1/v),s);
G=subs(g,{R,L,K,b,J},{6.69,8.7*10^(-3),5.643*10^(-2),1.018*10^(-4),9.907*10^(-5)});
G=vpa(G,5);
pretty(G)
It shows the expression G as
0.05643
---------------------------------------
2
8.6191e-7 s + 0.00066366 s + 0.0038654
I would like normalize this transfer function by placing one s^2 in the denominator as
zzzzzzz
---------------------------------------
2
1 s + xxxxxxx s + yyyyyyyy
Thank you
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 5 Mär. 2021
Bearbeitet: Walter Roberson
am 5 Mär. 2021
syms L R K b J s v
a1 = det ([(L*s+R) (v); (-K) (0)]);
a = det ([(L*s+R) (K); (-K) (J*s+b)]);
g=collect((a1/a)*(1/v),s);
G=subs(g,{R,L,K,b,J},{6.69,8.7*10^(-3),5.643*10^(-2),1.018*10^(-4),9.907*10^(-5)});
G=vpa(G,5);
G
[N,D] = numden(G);
Dc = coeffs(D,s);
NN = N/Dc(end);
ND = D/Dc(end);
G = vpa(NN/ND, 5)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear Algebra 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!