Azzera filtri
Azzera filtri

Find multiple solutions to one equation by changing value of variables

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

David Sanchez
David Sanchez il 5 Dic 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.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by