Clear Filters
Clear Filters

Find multiple solutions to one equation by changing value of variables

3 views (last 30 days)
I have an equation: x/u*v = 0.09293261.
I would like to find say 20 variations of x, u and v which will add up to this solution, within certain boundary constraints for x, u and v.
Managed to solve this using Excel Solver but it only returns one solution and I would like several. (Specifically my current solution is x = 0.019 , u = 280 and v = 7.30E-04.) I presume MatLab can do this but I'm struggling to understand how.
Please can you advise?

Accepted Answer

David Sanchez
David Sanchez on 5 Dec 2013
u = -10:0.1:10; % values range from -10 to 10 in 0.1 steps. Set your boundaries
v = -10:0.1:10; % values range from -10 to 10 in 0.1 steps. Set your boundaries
x = 0.09293261.*u./v; % x depends on the values of u and v
You will end up with an array ( x ) of values for x that fulfil the condition imposed by your equation.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!