• Support PF! Buy your school textbooks, materials and every day products Here!

Solving an equation in Matlab

  • Thread starter Belginator
  • Start date
  • #1
12
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.
 

Answers and Replies

  • #2
CEL
656
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.
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.
 

Related Threads on Solving an equation in Matlab

  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
1
Views
2K
Replies
1
Views
12K
Replies
1
Views
3K
  • Last Post
Replies
8
Views
6K
Replies
1
Views
1K
Replies
0
Views
4K
Replies
1
Views
4K
Top