1. Limited time only! Sign up for a free 30min personal 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!

Homework Help: 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


    User Avatar

    Your equation is of the form
    E = 1/Me*a*(1+b*Me^2)^c
    (E.^1/c)/a = 1/Me +b*Me
    Now, you should do some work.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook