Find multiple solutions to one equation by changing value of variables

3 次查看(过去 30 天)
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?

采纳的回答

David Sanchez
David Sanchez 2013-12-5
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.

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by