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-')

 Respuesta aceptada

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 comentarios

Mei Cheng
Mei Cheng el 12 de Sept. de 2022
yes, @Sam Chak, Thank you very much!
Sam Chak
Sam Chak el 12 de Sept. de 2022
You're welcome, @Mei Cheng.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Optimization en Centro de ayuda y File Exchange.

Preguntada:

el 12 de Sept. de 2022

Comentada:

el 12 de Sept. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by