{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sampleexamche310 - ChE 310-Computational Methods in...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
ChE 310—Computational Methods in Chemical Engineering Spring 2007 TR 8:00am – 9:30am 1134 & 1150 Sweeny Hall (99 Points total) Mid-Term Exam #1 NAME: By writing my name I certify that I have abided by all academic honesty policies. This exam is closed book, closed notes You may use a calculator Write your answers to be graded on the paper provided. Include this cover sheet, and remember to initial each page Scratch paper is available if you wish to use it. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
EXAM 1-1 M ATLAB : Array Construction and Usage EXAM 1-1 M ATLAB : Array Construction and Usage Write M ATLAB script code that will produce the following arrays. In some cases you may need to use the variables already defined previously. (Hypothetically speaking, you could use A to define D , and you could use B and C to define D ). Use no more lines of code than provided. 1.1-a (5 Points) 1 A = 0 π 4 π 2 3 π 4 π 1.1-b (5 Points) 1 B = 1 2 2 0 - 2 2 - 1 0 2 2 1 2 2 0 0 2 2 1 2 2 0 1 2 2 0 - 2 2 - 1 1.1-c (5 Points) 1 2 3 C = 2 3 4 5 6 7 8 9 3 4 5 6 7 8 9 10 4 5 6 7 8 9 10 11 5 6 7 8 9 10 11 12 6 7 8 9 10 11 12 13 7 8 9 10 11 12 13 14 8 9 10 11 12
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}