Project

Week 3 - Speed Programming in Matlab Octave for non computer science engineers

% matlab program to calculate the stochiometric coefficient  cumbution clear all close all clc % for first 20 carbon atoms in hydrocarbon range  ar=zeros(1,20); x=linspace(1,20,20);  for i=1:length(x)          alkane(i)=3/2*i+1/2;     alkene(i)=3/2*i;     alkyne(i)=3/2*i-1/2; end % ploting grid on hold on plot(x,alkane) plot(x,alkene) plot(x,alkyne) xlabel('stochiometric coefficent combustion') ylabel('number of carbon atoms in hydrocarbon') axis([1 20 1 20]); title('effect of number of moles of carbon on the stoichiometric co-efficient ') legend('alkane','alkene','alkyne')

output

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.