フィルターのクリア

Find multiple solutions to one equation by changing value of variables

1 回表示 (過去 30 日間)
Rachel
Rachel 2013 年 12 月 5 日
コメント済み: Rachel 2014 年 2 月 10 日
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 件)

カテゴリ

Help Center および File ExchangeNumeric Solvers についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by