Solve a differential equation using a For loop !
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!