I am looking for P in this equation in Matlab

조회 수: 1 (최근 30일)
Mahdi Koushaeian
Mahdi Koushaeian 2022년 4월 8일
편집: Mahdi Koushaeian 2022년 12월 19일
I am looking for solving this equation into matlab and find P. I want to solve and find P as other parameters.
I edited my variable. In second attachment shows all parameters.
What should I do if I want to show the P answer as a parameter form?

답변 (1개)

Davide Masiello
Davide Masiello 2022년 4월 8일
Hopefully this will help @Pooya Jahedi too.
clear,clc
alpha = 0.5;
kH = 1;
P0 = 1;
qm = 2;
kS = 0.01;
n = 4;
qx = 1;
func = @(x) qx-(exp(-alpha*x)*kH*x+(1-exp(-alpha*x))*qm*(kS*x)^(1/n)/(1+(kS*x)^(1/n)));
P = P0*fzero(func,1)
P = 1.5681
  댓글 수: 2
Mahdi Koushaeian
Mahdi Koushaeian 2022년 4월 8일
Thank you for your answering to my question.
What should I do if I want to show the P answer as a parameter form?
Torsten
Torsten 2022년 4월 8일
P cannot be expressed in parameter form - only a numerical solution with given values for the other parameters is possible.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by