필터 지우기
필터 지우기

solve simultaneous non-linear equation system using fsolve

조회 수: 2 (최근 30일)
Bertiningrum Devi
Bertiningrum Devi 2019년 5월 10일
댓글: Star Strider 2019년 5월 10일
Hi everyone,
I'm a beginner in matlab. I want to solve simultaneous non-linear equation system using fsolve. (pardon my english)
anyone have any idea how to do it? I read about making separate program then call it in the other program, but I'm confused which one should call which one.
When I tried to run the program, the command window told me:
Undefined function or variable 'x'.
Error in Modelsingletray (line 47)
EC=(1+(4.516*(10^-12)*x(1)+0.33368*x(10)+1.906*(10^-12)*x(8)))^0.5;
I have the codes attached. Any help is appreciated. Thank you
  댓글 수: 3
Bertiningrum Devi
Bertiningrum Devi 2019년 5월 10일
편집: Bertiningrum Devi 2019년 5월 10일
Thank you for your response, Star.
I'm trying to fix the order.
It's little bit confusing how to order them because they are related to each other.
for example,
the enhancement factors need the x(1) x(2) etc in which they also need the enhancement factors.
should I make it into a loop?
Star Strider
Star Strider 2019년 5월 10일
My pleasure.
A loop is an option, however that may not solve the problem. You likely need to make them into simultaneous equations that include all the variables, and then solve the system. That will probably require re-writing your code.

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

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 5월 10일
Your problem is not explcit. Some addtional expressions and/or input data are needed for mass transfer fluxes, gas partial prsssure, etc.

카테고리

Help CenterFile Exchange에서 Configure Simulation Conditions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by