Total beginner needs some help solving an equation

1 vue (au cours des 30 derniers jours)
Erik
Erik le 24 Fév 2012
Hi all, I'm a complete beginner with Matlab, I decided to start learning a bit about it recently as I would like to use Matlab to write a code for some calculations I am doing.
I don't need you guys to send me codes or anything, just some hints to point me in the right direction would be very much appreciated!
So here's a link to the equation that I want to solve ---> http://dl.dropbox.com/u/23857814/Equation.JPG
Just to clarify the equation, 'Cn' and 'lamda' are in fact known values, or let's say they are variables that i can give specific values to so that in the equation only 'K' is unknown.
So my question is, how do I go about to solve for K in Matlab? Like I said, just some tips would be great :)
Thanks in advance.
Erik

Réponse acceptée

G A
G A le 24 Fév 2012
doc solve
  3 commentaires
Sean de Wolski
Sean de Wolski le 24 Fév 2012
uses the SUBS function to substiture values into symbolic variables:
doc subs
G A
G A le 24 Fév 2012
Erik, you can try this way:
lamda=0.9; Cn=0.06;
syms k
solve (eval('(pi^4/(4*k))*((1+lamda*k/pi)/(pi*k/lamda)^2)* (0.5*pi*k/lamda*(((1+lamda*k/pi)/(1-pi*k/lamda))+(1-pi*k/lamda))+log(1-pi*k/lamda))-Cn'),k)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by