This preview shows pages 1–2. 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: character string, including a single quote at the beginning and end of the name. If youd like to verify your calculations, try the following values: 1 hour = $30, 2 hours = $60, 40 hours = $1200, 41 hours = $1245, 42 hours = $1290 Computer Question 3: Finding the 3 largest elements Write Matlab Code that calculates the sum of all of the prime numbers between 15 and 150: 17 + 19 + 23 + 29 + + 137 + 139 + 149 Note that you are not permitted to use a loop to solve this problem; you must use matrix / vector operations and functions. If you want to check your answer, the correct sum is 2235. Computer Question 4: Plotting a surface For both x and y running from 0 to 50 (in increments of 0.5), display the following 3D surface using the surf command. Turn the grid on. z = x*cos(y)/5 Your surface should look something like this:...
View
Full
Document
This note was uploaded on 02/29/2012 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.
 Fall '09
 blase

Click to edit the document details