Question 1
Write the MATLAB code for the function make_wv1 that realizes the t, wv vector as called by [t,wv] = make_wv1(K1, alpha1, K2, alpha2, f2, A, f, tSpan); All input but tSpan are scalar values. The input vector tSpan get assigned into the output vector t as returned by the function.
Question 2
Write MATLAB code that uses the make_wv1 function to make the t, wv vector pair. We'll be using this waveform (you've downloaded its description) to answer the remaining Part I questions. The values K1, alpha1, K2, alpha2, and A should respectively take on the values of 15, 5000, 25, 2000, and 5. The respective frequencies for f2 and f should be 25 kHz and 10 kHz. Finally, the tSpan vector should define a time sequence that last for 3 msec such that the representative time interval between adjacent element is 1 msec. Given these values (you can assign them into variables first or pass them into make_wv1 anonymously), write the MATLAB code that applies make_wv1 to obtain this desired vector pair
Question 3
(Easy question!) Given the above waveform, as time gets "large" the function should describe a sinusoid with a given amplitude and frequency. To answer this question, simply write down the values of the amplitude and frequency for this sinusoid.
Question 4
Write MATLAB code to plot this function such that the time axis is shown in msec. No scaling is required for the wv axis.
Question 5
Write MATLAB code to realize a plot showing just the first 200 msec of the waveform. For this problem, the time axis should be in msec.
Question 6
Either use the plot or write a MATLAB expression that will determine the maximum overshoot value of the function. (Four points credit for the MATLAB expression -- just 3 points if you use the plot.) Write down the value you obtained accurate to 3 decimal places (a 4 place is optional).
Question 7
Write MATLAB code to realize a plot showing the waveform from 2.8 msec through 3.0 msec. The plot here should show the time axis expressed in msec.
Question 8
During the time span from 2.8 msec to 3.0 msec, can we strictly say the waveform has achieved steady state? Explain your answer with some numbers. If you use the plot, the answer is worth 2 point (if correct!); if you use MATLAB code and obtain the correct answer, you will receive 3 points credit.
Question 9
Write the MATLAB code to find the lowest and highest values contained in x and the mean value over all elements of x. Be sure to show the answers MATLAB gave you as part of the answer.
Question 10
Write the MATLAB code (and the answer MATLAB gives you) to find the count of the number of elements in x less than or equal to the value 8.3
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme