필터 지우기
필터 지우기

Problems using solve function for linear system of equations

조회 수: 1 (최근 30일)
Hi Guys
Hi Guys 2020년 1월 30일
편집: Hi Guys 2020년 1월 30일
Hey guys im having trouble using the solve function. I need it to return values for variables within a certain range but for some reason im getting negative values for my P1 P2 and P3.
How can i tell matlab that the P values must be between:
0<P1<270
0<P2<200
0<P3<200

답변 (1개)

Alex Mcaulley
Alex Mcaulley 2020년 1월 30일
Use assume function before solve:
assume(0 < p1 < 270)
assume(0 < p2 < 270)
assume(0 < p3 < 270)

카테고리

Help CenterFile Exchange에서 Systems Of Linear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by