How Do You Solve Nonlinear Equations in Matlab for Multiple Outputs?

  • Thread starter Thread starter Belginator
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Belginator
Messages
12
Reaction score
0

Homework Statement



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.
 
Physics news on Phys.org
Belginator said:

Homework Statement



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.
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.