MATLAB Zeros to function of 2 variables, Matlab.

AI Thread Summary
To find zeros of a function of two variables in Matlab, users can utilize optimization techniques such as the 'fminunc' or 'fmincon' functions, which can handle multiple variables. The provided function Z involves complex calculations with variables A and B, both of which are constrained to positive values. Users are encouraged to create a system of equations or use numerical methods to approach the problem, as standard zero-finding functions typically apply to single-variable scenarios. Additionally, plotting the function can help visualize where the zeros may lie. Overall, exploring optimization functions in Matlab is key for solving this type of problem.
malawi_glenn
Science Advisor
Messages
6,735
Reaction score
2,433
Hi!

I was wondering how you can find zeroes to a function of two variables. I use Matlab.

This is the function:

Z = 2*A.*(A+B).*(2*A+B)./(B.*B).*(0.25*A.^(-3)+4*(2*A+B).^(-3)+0.25*(A+B).^(-3))-14.44;

I know that A and B are positive. But I only know of inbuilt functions and algoritms for finding zeros for functions of ONE variable..

Do you guys know any?
 
Physics news on Phys.org
Normally, you need two equations to minimize for two variables for a global solution.
 

Similar threads

Replies
4
Views
1K
Replies
32
Views
4K
Replies
2
Views
3K
Replies
5
Views
3K
Replies
2
Views
3K
Back
Top