Create a Matlab program to calculate the stoichiometric AFR for the following hydrocarbons: • Methane • Ethane • Propane • Butane • Pentane • Hexane • Octane • Decane and • Dodecane ....Plot their variation with carbon to hydrogen ratio.

3 ビュー (過去 30 日間)
Parag Bendre
Parag Bendre 2019 年 10 月 22 日
コメント済み: Rik 2022 年 9 月 6 日
I have made a basic matlab programme for this code to run but plot is not generating.How should I approach for its plot generation?
%Stoichiometric air fuel ratio(AFR) by moles(a) and by mass(b)
r=[];
c= menu('Enter Carbon atoms= ',1,2,3,4,5,6,8,10,12);
h=(2*c)+2;
disp(['for ',num2str(c),' carbon atom,Hydrogen atoms= ',num2str(h)])
x=c;
y=h/2;
a=x+(y/4);
b=(a*4.76*29)/((12*c)+(h*1));
r=c/h;
disp(['Stoichiometric AFR by moles=', num2str(a)])
disp(['Stoichiometric AFR by mass=',num2str(b)])
plot(a,r)
  5 件のコメント
Muhammad Anas khan
Muhammad Anas khan 2022 年 9 月 6 日
sir plz help i want the stoichiometry of C02+4H2-----------> CH4+2H2O
Rik
Rik 2022 年 9 月 6 日
@Muhammad Anas khan You forgot to ask a question. As far as your comment is a question it is not about Matlab yet.
Have a read here and here. It will greatly improve your chances of getting an answer.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeValentines Day についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by