Programming Language Is MATLAB Let tl = [0 0.3], t2 = [0.5 2], and dt= [0.1,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Programming Language Is MATLAB Let tl = [0 0.3], t2 = [0.5 2], and dt= [0.1, 0.05, 0.01, 0.005] 1. Create a time vector ranging from 0 to 1.0, based on the dt value controlled by the for loop. (5 pts) 2. Create two vectors, a and b, according to the following rules: (5 pts) (-1 min (t1) t max (t1) otherwise ={ (1 min (t2) t max (t2) otherwise 3. Convolve vectors a and b using a manual technique (such as that used in your MiniLab) (10 pts) and MATALB's conv() command (5 pts). You must do this both ways! 4. Create Figure 1, a figure with length(dts)x2 grid (i.e., 4x2 if dts has 4 values) of sub-plots: (20 pts) a. In column 1, plot, using the stem() and hold on commands: i. The manual convolution results ii. The results from conv(). Each row corresponds to a different dt value. Do not plot your convolved values against any specific x-vector. That is, instead of the typical plot(x,y) that you might use, this time simply call plot(y). Be very specific and very careful about your x-axis label. What does the x-axis represent in this case? For example, if you convolve a 0-1 second signal containing 11 values (dt=0.1) with another 0-1 second signal containing 11 values, your convolution, and hence your plot, will have 21 values. b. In column 2, you will plot the same thing as column 1, but you'll need to make an adjustment. You must make a correction such that your resulting solution does not change in amplitude regardless of the dt chosen. i. Notes & hints: 1. Much like calculating the area under a curve discretely using a Riemann sum, you are calculating a discrete convolution. Such numerical approximations are prone to discretization error as dt increases. Therefore, the max value in your plots in column 2 will not be exactly the same, but they will approach the same value as dt gets smaller. 2. The correction is not to normalize by the max value so that your solution always achieves a maximum value of 1. 5. Create Figure 2, which is just like Figure 1, but this time you will plot the results of your convolution versus time. Going back to the previous example as well as referring back to the lecture, if you have 21 values in your solution and you know that dt-0.1, then you also know that time ranges from 0 to 2. To create the plots in Figure 2, you'll need to create a new time vector that accounts for the length of the convolution results. (10 pts) As always, make sure your axes are labeled, that you use appropriate titles, and that lines are clearly distinguishable. Programming Language Is MATLAB Let tl = [0 0.3], t2 = [0.5 2], and dt= [0.1, 0.05, 0.01, 0.005] 1. Create a time vector ranging from 0 to 1.0, based on the dt value controlled by the for loop. (5 pts) 2. Create two vectors, a and b, according to the following rules: (5 pts) (-1 min (t1) t max (t1) otherwise ={ (1 min (t2) t max (t2) otherwise 3. Convolve vectors a and b using a manual technique (such as that used in your MiniLab) (10 pts) and MATALB's conv() command (5 pts). You must do this both ways! 4. Create Figure 1, a figure with length(dts)x2 grid (i.e., 4x2 if dts has 4 values) of sub-plots: (20 pts) a. In column 1, plot, using the stem() and hold on commands: i. The manual convolution results ii. The results from conv(). Each row corresponds to a different dt value. Do not plot your convolved values against any specific x-vector. That is, instead of the typical plot(x,y) that you might use, this time simply call plot(y). Be very specific and very careful about your x-axis label. What does the x-axis represent in this case? For example, if you convolve a 0-1 second signal containing 11 values (dt=0.1) with another 0-1 second signal containing 11 values, your convolution, and hence your plot, will have 21 values. b. In column 2, you will plot the same thing as column 1, but you'll need to make an adjustment. You must make a correction such that your resulting solution does not change in amplitude regardless of the dt chosen. i. Notes & hints: 1. Much like calculating the area under a curve discretely using a Riemann sum, you are calculating a discrete convolution. Such numerical approximations are prone to discretization error as dt increases. Therefore, the max value in your plots in column 2 will not be exactly the same, but they will approach the same value as dt gets smaller. 2. The correction is not to normalize by the max value so that your solution always achieves a maximum value of 1. 5. Create Figure 2, which is just like Figure 1, but this time you will plot the results of your convolution versus time. Going back to the previous example as well as referring back to the lecture, if you have 21 values in your solution and you know that dt-0.1, then you also know that time ranges from 0 to 2. To create the plots in Figure 2, you'll need to create a new time vector that accounts for the length of the convolution results. (10 pts) As always, make sure your axes are labeled, that you use appropriate titles, and that lines are clearly distinguishable.
Expert Answer:
Answer rating: 100% (QA)
This passage appears to be a set of instructions for a programmi... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Imagine that you are a consultant for an investment fund which sold a client a call option on a stack. Explain to yen]: management {who are smart but not mathematically trained} what risk is present...
-
A five-year follow-up study was carried out in a certain metropolitan area to assess the relationship of diet and weight to the incidence of stomach cancer. Data were obtained on n = 2,000 subjects....
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
In Exercises 1 through 18, differentiate the given function. y 2+1 1-2
-
A piece of transparent material having an index of refraction n is cut into the shape of a wedge as shown in Figure P37.60. The angle of the wedge is small. Monochromatic light of wavelength A is...
-
The controller of Yorktown Corporation instructs the cost supervisor to use algebraic distribution of service departments' costs to producing departments. There are three service departments, and...
-
Sample wealth (in billions of dollars) for billionaires in Africa and Asia are listed. Find the coefficient of variation for each of the two data sets. Then compare the results. Africa 12.2 7.7 7.2...
-
Magnificent Modems has excess production capacity and is considering the possibility of making and selling paging equipment. The following estimates are based on a production and sales volume of...
-
What are the information parameters that support the roles played by Dummy file conversion in management? How can the absolute version of systems management be analyzed? What are the contributions of...
-
Tropikana Inc., a U.S firm, has just borrowed 1,000,000 to make improvements to an Italian fruit plantation and processing plant. If the interest rate in is 5.50% per year and the Euro depreciates...
-
When electric current is flowing in a metal, the electrons are moving Answer at the speed of light. at the speed of sound in the metal. at the speed of sound in air. at nearly the speed of light. at...
-
A change in the measurement basis applied is a change in an accounting policy, and is not a change in an accounting estimate. When it is difficult to distinguish a change in an accounting policy from...
-
SCENARIO 1: The management of your company is concerned that lately, there have been many negative messages on social media sites (Facebook and Instagram) that criticise the company for implementing...
-
The most recent financial statements for Live Co. are shown here: Income Statement Balance Sheet Current Sales $13,000 $28,032 Debt $27,628 assets Costs 7,800 Fixed -assets 19,616 Equity 20,020...
-
Reviewing the topics in Cover Letters from the Strayer University Career Center, take some time to reflect on what you learned regarding the importance and structure of cover letters. Ascertain the...
-
Give An example of a tonal language in which the denotative meaning of some words depends on the context.
-
ver 2 17. Mr. Ojo, a 60-year old obessed politician was rushed to medical out-patient clini with the history of urinary incontinence. A diagnosis of overactive bladder syndrom was made. (a) With the...
-
As indicated by mutual fund flows, investors tend to beat the market seek safety invest in last year's winner invest in last years loser
-
Why is using cloud-computing resources sometimes preferable to purchasing all the hardware you need for your own computer?
-
Suppose class Book defines properties Title, Author and Year. Use an object initializer to create an object of class Book and initialize its properties.
-
State whether each of the following is true or false. If false, explain why. a) Comments cause the computer to display the text after the // on the screen when the app executes. b) C# considers the...
-
Analogy approach makes people end up building templates rather than building patterns. Explain.
-
Explain the concept behind constructing analysis pattern by using stability approach.
-
What are the advantages of using stability approach over direct and analogy approach?
Study smarter with the SolutionInn App