Solve nonlinear equation with a changing parameter

Hi,
I thank you for your kind help in advance!
I am solving the nonlinear equation with a changing parameter (Va), I want to solve the independent variable (x) with a changing parameter (Va).
Then, I want to plot a figure in which the variable is a function of Va, that is,
The nonlinear equation is desribed as below code:
x = linspace(0.1,0.2); % x is an independent variable
% below is a system of nonlinear equations, but only an independent variable
% and an independent changing parameter Va
A = 1.0764e-6./(0.4-2.*x).^3;
B = (0.8308-1.154.*x+0.006.*logA)./(1-(0.2308-1.154.*x).*(0.6+0.006.*logA));
C = 1.2422e-14.*B/(0.4-2.*x).^2;
D = 5.9801e-15.*B;
Va = 5e-5.*(A+C)+7.5e-4.*D;
% Va is a changing parameter, 0.00000001<V<0.01;
% I want to plot a figure in which A as a function of Va
% semilog (Va, A, 'k-')

 Réponse acceptée

Check if this is the plot you desire:
x = linspace(0.1, 0.2, 101);
A = 1.0764e-6./(0.4-2.*x).^3;
B = (0.8308-1.154.*x+0.006.*log(A))./(1-(0.2308-1.154.*x).*(0.6+0.006.*log(A)));
C = (1.2422e-14.*B)./(0.4-2.*x).^2;
D = 5.9801e-15.*B;
Va = 5e-5.*(A + C) + 7.5e-4.*D;
semilogx(Va, A, 'b-'), grid on, xlabel('V_a'), ylabel('A')

2 commentaires

yes, @Sam Chak, Thank you very much!
You're welcome, @Mei Cheng.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Optimization dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by