1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving an equation in Matlab

  1. Oct 4, 2009 #1
    1. The problem statement, all variables and given/known data

    Ok I have an equation:

    E = (1/Me)*((2/(gamma+1))*(1+((gamma-1)/2)*Me^2))^((gamma+1)/(2*gamma-2));

    Where is E is a matrix of [0:1:80] and gamma is known as 1.40.

    What function do I use to solve for Me? I need to find a matrix of 80 values of Me each corresponding to the E value.

    I have no idea what to use, I was going along the lines of fsolve, but I just don't know, any help would be very much appreciated.
     
  2. jcsd
  3. Oct 5, 2009 #2

    CEL

    User Avatar

    Your equation is of the form
    E = 1/Me*a*(1+b*Me^2)^c
    So
    (E.^1/c)/a = 1/Me +b*Me
    Now, you should do some work.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Solving an equation in Matlab
Loading...