Solve a differential equation using a For loop !

조회 수: 7 (최근 30일)
Abdullaziz Al-Farqani
Abdullaziz Al-Farqani 2019년 1월 31일
Gents, I am trying to solve the following equations(dMB/dt, SB(j) ) , for each stage, in Matlab using a For loop:
dMB/dt = B(j) - B(j-1); % Mass flowrate of brine solution
SB(j) = (1-CB(j)*(0.011311 - 1.146e-05*TB(j)))*SD(j); % specific heat of brine
,where j represents a stage number (e.g. j = 1:N), N = 20(number of stages)
Notice that I have defined, (CB(j),TB(j),SD(j)), for all stages (N)

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by