How to solve a symbolic system of equations with the solve function?

I assigned the symbolic unknowns as positive. I read that the solve disregards that assumption while solving the system and it calls some kind of numeric solver that assigns the first solution even if it is negative.
So is there anyway to tell to this numeric solver that I just want the positive solutions? what are the options?

Answers (2)

Let the solver find all the solutions, then just take the positive ones
The problem is that it's a system. Matlab automatically assumes the first solution and if it's negative he uses it to calculate all the other unknowns so it "contaminates" them.
This is a system only with one solution if all the intermediate solutions are assumed as positive ones. So I need all of them.

This question is closed.

Asked:

on 9 Dec 2012

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!