Problems using solve function for linear system of equations

1 view (last 30 days)
Hi Guys
Hi Guys on 30 Jan 2020
Edited: Hi Guys on 30 Jan 2020
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:

Answers (1)

Alex Mcaulley
Alex Mcaulley on 30 Jan 2020
Use assume function before solve:
assume(0 < p1 < 270)
assume(0 < p2 < 270)
assume(0 < p3 < 270)

Community Treasure Hunt

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

Start Hunting!