This preview shows page 1. Sign up to view the full content.
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 functioninstead, 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
 Fall '09
 blase

Click to edit the document details