필터 지우기
필터 지우기

how to choose the intended answer of an equation that has 4 solutions?

조회 수: 2 (최근 30일)
hi, i used vpasolve to solve an equation that has 4 solutions but the problem is i need the one that is between 0 and 1.
how can i choose that one?
M2=vpasolve((((1+1.4*M1^2)/(1+1.4*M2^2))^2*((M2/M1)^2)*((1+0.2*M2^2)/(1+0.2*M1^2)))-(To2/To1),M2);
its because i need to put that one value in another equation.
  댓글 수: 2
madhan ravi
madhan ravi 2019년 4월 3일
Provide the missing values to test.
madhan ravi
madhan ravi 2019년 4월 3일
편집: madhan ravi 2019년 4월 3일
What if the any of the solution lies between 0 & 1 like it does now???

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2019년 4월 3일
R = double(M2);
Wanted = R(R>0 & R<1)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by