Q1.20 The average power of the generated sinusoidal sequence is -
Q1.21 The purpose of axis command is -
The purpose of grid command is -
Q1.22 The modified Program P1_4 to generate a sinusoidal sequence of frequency 0.9 is given below along with the sequence generated by running it.
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
A comparison of this new sequence with the one generated in Question Q1.17 shows -
A sinusoidal sequence of frequency 1.1 generated by modifying Program P1_4 is shown below.
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
A comparison of this new sequence with the one generated in Question Q1.17 shows -
Q1.23 The sinusoidal sequence of length 50, frequency 0.08, amplitude 2.5, and phase shift of 90 degrees generated by modifying Program P1_4 is displayed below.
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The period of this sequence is -
Q1.24 By replacing the stem command in Program P1_4 with the plot command, the plot obtained is as shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The difference between the new plot and the one generated in Question Q1.17 is -
Q1.25 By replacing the stem command in Program P1_4 with the stairs command the plot obtained is as shown below:
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
The difference between the new plot and those generated in Questions Q1.17 and Q1.24 is -
Project 1.4 Random signals
Answers:
Q1.26 The MATLAB program to generate and display a random signal of length 100 with elements uniformly distributed in the interval [–2, 2] is given below along with the plot of the random sequence generated by running the program:
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q1.27 The MATLAB program to generate and display a Gaussian random signal of length 75 with elements normally distributed with zero mean and a variance of 3 is given below along with the plot of the random sequence generated by running the program:
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Q1.28 The MATLAB program to generate and display five sample sequences of a random sinusoidal signal of length 31
{X[n]} = {Acos(on + )}
where the amplitude A and the phase are statistically independent random variables with uniform probability distribution in the range for the amplitude and in the range 0 for the phase is given below. Also shown are five sample sequences generated by running this program five different times.
< Insert program code here. Copy from m-file(s) and paste. >
< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >
Chia sẻ với bạn bè của bạn: |