Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = 0:1:15;
- ar_alkane = ((3.*n) + 1)./2;
- ar_alkene = (3.*n)./2;
- ar_alkyne = ((3.*n) - 1)./2;
- figure('Name','Stoichiometric Combustion');
- hold on; box on;
- set(gcf,'color','w');
- plot(n,ar_alkane,'-.sb','LineWidth',1,'MarkerFaceColor','b','MarkerEdgeColor','b');
- plot(n,ar_alkene,'r','LineWidth',2);
- plot(n,ar_alkyne,'--m','LineWidth',2);
- grid on; grid minor; xlim([1 12]);
- lg=legend('Alkane','Alkene','Alkyne','Location','Northwest');
- title(lg,'Fuel Type');
- xlabel('Number of atoms of Carbon','FontWeight','bold');
- ylabel('Stoichiometric Coefficient','FontWeight','bold');
- print('Plot','-dpng','-r300');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement