フィルターのクリア

Solve multivariate equation using fsolve()

2 ビュー (過去 30 日間)
Steven Niggebrugge
Steven Niggebrugge 2018 年 6 月 3 日
回答済み: Star Strider 2018 年 6 月 3 日
Hi, i have written a multivariate function f(x, a, b, c). Holding a, b, c values fixed, i want to know for what value of x the function f() results in a value of 2. How do I use fsolve to solve this equation? Fsolve seems to be solving only equation f() = 0, so how do i change the objective value 0 to 2?
many thanks Steven

回答 (1 件)

Star Strider
Star Strider 2018 年 6 月 3 日
You are apparently starting with:
f = @(x, a, b, c) Something;
although I have no idea what ‘Something’ may be.
I would do this:
x0 = ...; % Initial Estimate For ‘x’
Xval = fsolve(@(x) f(x,a,b,c) - 2, x0); % Solve For ‘f(x) = 2’
You may be able to use fzero for this as well.

カテゴリ

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