Unformatted text preview: screen. Let x run from 0 to 25: y = x*sin(15x) Use appropriate axes, and make sure that the animation works when you run it. Computer Question 3: The coordinates of an object, as a function of time t , for 0<= t <= 4 are: x(t) = 5t10 y(t) = 25t 2120t + 144 Write a program that determines the time at which the object is closest to the origin. Recall that the distance from the origin is sqrt(x^2+y^2). You are not permitted to use the min functionâ€”instead, use a loop to calculate the minimum. Computer Question 4: Write a function called makeupnumber that returns a random integer from 3 to 30. Note that the function does not take any input. Now, write Matlab code that calls makeupnumber 1000 times and displays which integer was returned most often. If there are multiple maxes (i.e. multiple integers were returned the same number of times), the program should display all of those....
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