MATLAB is not plotting the entire graph

%%Reaction rate constants:
k1 = 5/6; %(min^-1)
k2 = 5/3; %(min^-1)
k3 = 1/6; %(mol/(L min))
%%Reactor volume:
V = 1; %(L)
%%Initial values:
Cao = 10; %(mol/L)
%%Feed flow rate:
F = 0:0.1:5
%%Ca at steady state equation:
Cas = (-(k1+F./V)/(2*k3))+sqrt((k1+F./V).^2+4*k3*(F./V)*Cao)/(2*k3);
%%Cb at steady state equation:
Cbs = Cas*(k1)/((F./V)+k2)
plot(F,Cbs)
This is only giving me the final Value of Cbs instead of all the values of Cbs tied to the correct F

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 19 日

1 投票

Correct the last lines
Cbs = Cas*(k1)./((F./V)+k2)
plot(F,Cbs)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeNetworks についてさらに検索

質問済み:

2016 年 4 月 19 日

回答済み:

2016 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by