Advertisement
Devang921

Stoichiometric Coefficient

Feb 27th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.61 KB | None | 0 0
  1. n = 0:1:15;
  2.  
  3. ar_alkane = ((3.*n) + 1)./2;
  4. ar_alkene = (3.*n)./2;
  5. ar_alkyne = ((3.*n) - 1)./2;
  6.  
  7. figure('Name','Stoichiometric Combustion');
  8. hold on; box on;
  9. set(gcf,'color','w');
  10. plot(n,ar_alkane,'-.sb','LineWidth',1,'MarkerFaceColor','b','MarkerEdgeColor','b');
  11. plot(n,ar_alkene,'r','LineWidth',2);
  12. plot(n,ar_alkyne,'--m','LineWidth',2);
  13. grid on; grid minor; xlim([1 12]);
  14. lg=legend('Alkane','Alkene','Alkyne','Location','Northwest');
  15. title(lg,'Fuel Type');
  16. xlabel('Number of atoms of Carbon','FontWeight','bold');
  17. ylabel('Stoichiometric Coefficient','FontWeight','bold');
  18. print('Plot','-dpng','-r300');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement