How to plot the variations for integrating parameter

조회 수: 2 (최근 30일)
Kumaresh Kumaresh
Kumaresh Kumaresh 2022년 10월 8일
댓글: Kumaresh Kumaresh 2022년 10월 13일
Hello all,
I have some equations integrated in Matlab. One such set of equations are,
H2Ox = @(EA) -0.0023*(-8/(48000^8))*(((EA)-183000)^7);
H2Oz = integral(H2Ox, 183000, Inf);
Here there are no issues with integration, but I would like to plot the variations for integrating parameter EA. I don't know if Matlab provides the intervals to understand the change in values.
Is it possible to get the EA values as output ? in order to understand as how EA behaves ?
Kindly someone share the thoughts.
Thank you
  댓글 수: 7
Ghazwan
Ghazwan 2022년 10월 10일
ok. If you plot it a simple 2D plot, what would be the X and Y axes?
Kumaresh Kumaresh
Kumaresh Kumaresh 2022년 10월 10일
X - EA,
Y - Dependent variables like FE_H2O, CO2, so so on

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

채택된 답변

Torsten
Torsten 2022년 10월 10일
Note that integral(H2Ox, 183000, Inf) = Inf !!
H2Ox = @(EA) -0.0023*(-8/(48000^8))*(EA-183000).^7;
H2Oz = @(y) integral(H2Ox, 183000, y);
y = 183000:100:300000;
plot(y,arrayfun(H2Oz,y))
  댓글 수: 1
Kumaresh Kumaresh
Kumaresh Kumaresh 2022년 10월 13일
Thanks Mr. Torsten. You saved my day. You should be called as MATLAB magic man !!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by