Good night ,,,, I just wanna the answer for question 4 : without explain Thank y
ID: 1994194 • Letter: G
Question
Good night ,,,, I just wanna the answer for question 4 : without explain Thank youWCU is awesome! 3. (2 Points) Set the seed of the random number generator to be 0. Generate a random number vector with 20 elements, and the data range is from 7 to 12. Display the vector's minimum value, maximum value, and average value. The expected output looks like something below (the actual values of the answers are not shown). (Hint: type "help min" and check the "See also" links on relevant functions to find the function to calculate the average value.) The minimum value of the random vector is: The maximum value of the random vector is: The average value of the random vector is: 4. (2 Points) A student measured the weight of two samples on Oct 9th, 2016 and Oct 10th, 2016, respectively. The first sample weighed 19.8lb, and the second sample weighed 22.5lb. 1lb-0.453592kg. Please print these values using fprintf function with three placeholders to render the exact format below with specific required spaces. You also need to fil values (marked as x's below) using Matlab expressions. l in the kg The sample measured on Oct 9 was 19.81b, or x.xxxxkg. The sample measured on Oct 10 was 22.51b, or xx.xxxxkg 5. (2 Points) Plot a curve: define a variable t to be an equally spaced sequence, starting from 0, with 0.1 step size, and ending at 157t. The x and y coordinates of each point on this curve are evaluated by x = e-175 Cost y = e-t/50 t/50 cos(t), e-t/Sosin(t). Further, plot the starting point of the curve with a red circle marker, and the ending point
Explanation / Answer
fprintf("The sample measured on %s was %d lb or %1.4d kg", date ,weight,weight*.453592);
fprintf("The sample measured on %s was %d lb or %2.4d kg", date ,weight,weight*.453592);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.