how can I solve this symbolic expression??

I have spent several hours trying to figure this out but I have not been able to. I have:
syms s K ess;
Gs=(K*(s+12))/((s+14)*(s+18))
Kp=limit(Gs,s,0)
ess=1/(1+Kp)
This results in the symbolic equation:
ess = 1/(K/21 + 1)
I am trying to get the value of K, when ess=0.1
I DO NOT WANT to manually write the expression in quotes like this:
solve('1/(K/21 + 1) = 0.1',K)
I need to do something similar but with the equation I already have in the variable ess. Something like this (which does not work):
solve(ess=0.1,K) %where ess is the symbolic expression I already have

1 comentario

Walter Roberson
Walter Roberson el 23 de Abr. de 2013
Editada: Walter Roberson el 23 de Abr. de 2013
solve(ess=0.1,K) should work in R2011b and later, I believe. (Or is it R2012a ?)

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Abr. de 2013
sol=solve(ess-0.1,K)

1 comentario

Felipe
Felipe el 23 de Abr. de 2013
Thank you! the solution was so simple that now I am ashamed of having asked this question :s

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by