필터 지우기
필터 지우기

two x solutions graphical how can i restrict the range?

조회 수: 1 (최근 30일)
sarah
sarah 2015년 6월 12일
댓글: Walter Roberson 2015년 6월 13일
Hi guys,
I have an equation to solve for which involves finding the x solution for a certain y value. However for that y value there are two or more solutions. However I know that the x solution should be greater than i.e. x>2 (which is the correct solution). How do I restrict the function in mat lab to give me x>2?
Would anyone know how to do this?
Any help would be appreciated.
  댓글 수: 6
sarah
sarah 2015년 6월 13일
Thanks so much David.
Walter Roberson
Walter Roberson 2015년 6월 13일
Be a bit careful there, ">" can ignore the complex part.
sol.x(imag(sol.x)==0 & sol.x>2))

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by