Find multiple solutions to one equation by changing value of variables
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Rachel
el 5 de Dic. de 2013
Comentada: Rachel
el 10 de Feb. de 2014
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?
0 comentarios
Respuesta aceptada
David Sanchez
el 5 de Dic. de 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.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!