This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: for i=1:10 %set loop to run through each tank in vectors if M(i)<=5 display(Snum(i)) display( 'Helium' ) elseif M(i)<=20 display(Snum(i)) display( 'Methane' ) else display(Snum(i)) display( 'Nitrogen' ) end end matlab results >> run Gas_tanks ans = 8594 Methane ans = 5267 Nitrogen ans = 5269 Nitrogen ans = 8475 Methane ans = 4358 Helium ans = 4459 Helium ans = 8475 Methane ans = 5978 Nitrogen ans = 4857 Helium ans = 8484 Methane...
View Full Document
This note was uploaded on 11/16/2010 for the course EGR 102 taught by Professor Hinds during the Spring '09 term at Michigan State University.
- Spring '09