fsolve - function with two input arguments
9 次查看(过去 30 天)
显示 更早的评论
Hello!
Is it possible to solve function with two input arguments? I have function in which I input two parameters and it returns one.
Example:
x = function(a,b)

But now i have a problem. I know parameters x and a, how do I get parameter b? Is it even possible?
Thanks for your reply!
0 个评论
采纳的回答
Jeff Miller
2020-1-30
function b = find_b(knownX, knownA, guessForB)
fun = @(b) pfun2(knownA,b) - knownX;
b = fzero(fun,guessForB);
end
Depending on your pfun2, you may or may not need a guessForB that is close to the right value.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!