Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Your code must be written in a single script file. -------------------------------------------------------------- 2. Generate a vector in MATLAB representing the time interval from 0 to

1. Your code must be written in a single script file.

-------------------------------------------------------------- 2. Generate a vector in MATLAB representing the time interval from 0 to 4, with a sampling rate of 500 samples per unit of time.

-------------------------------------------------------------- 3. Generate two sinusoidal signals in with the following frequencies: 1 and 3, amplitudes of 2 and 1 respectively.

--------------------------------------------------------------

4.Add the two sinusoids.

-------------------------------------------------------------- 5. Generate a unit signal of length 150 samples. The sum of the signal points must be one unit.

-------------------------------------------------------------- 6. Perform the convolution of the signal resulted from the subtract (in step 4) with the unit signal (in step 5).

-------------------------------------------------------------- 7. Remove excess values from the start and end of the resulting signal from the resulting signal from the convolution, so the sizes of all signals are the same (except the unit signal).

-------------------------------------------------------------- 8. Show the signals, each in a separate subplot, using the command that draws continuous waves. Use subplot command in the following manner: (a). All signals must be shown with the time vector as the horizontal axis values. They also must have proper titles and labels on both axes.

(b). Signals 1 and 2 (generated in step 3) must be shown in proportion to each other (i.e., same axis limits).

(c) Show the signal generated in step 3 on top of the result of the convolution signal tound in step 7 in a different color. (1.5 point)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions