Ask Other Engineering Expert

Introduction to Signal Analysis Lab

The objective of this lab is to generate samples of frequency and amplitude modulated sinusoids. We will study the effect of modulation by listening to the results converted to audio via the MATLAB command sound. This set of instructions is adapted from your textbook (DSP First - A Multimedia Approach),

A. Synthesize Beat Notes: An Example of Amplitude Modulation

1. Write a function named beat_notes that implements the sum of two sinusoidal signals of slightly different frequencies, given by the following equation:

X(t) = A cos(2π(fc - f?)t) + B cos(2π(fc + f?)t)

The function should have the following input and output parameters:

Inputs:

  • A: amplitude of lower frequency cosine (real)
  • B: amplitude of higher frequency cosine (real)
  • fc: center frequency (real and positive)
  • fdelta: frequency difference (real and positive)
  • fsamp: sampling rate (integer and positive)
  • dur: total time duration in seconds (real and positive)

Outputs:

  • t: time vector ranging from 0 to dur with a sampling rate of fsamp
  • X: vector containing samples of the sum of two sinusoids

2. An error message should be generated if any of the inputs does not meet the specified conditions.

3. The function should produce the plot of X versus t with proper labels and title. Select a small portion of the signal in order to get a clean graph (e.g. select 0.2 seconds if the total duration is 2 seconds).

4. The function should also convert the signal to audio and play it by using the MATLAB function sound with two input arguments X and fsamp.

5. Call the function in the command window for the following input sets:

i. A=10, B=10, fc=50, fdelta=10, fsamp=8000, dur=4

ii. A=10, B=10, fc=200, fdelta=10, fsamp=8000, dur=2

iii. A=10, B=10, fc=2000, fdelta=10, fsamp=8000, dur=1.5

Listen to the signal and verify that the amplitude and frequency of the "envelope" is correct in each case.

B. Synthesize a Chip: An Example of Frequency Modulation

1. Write a function named my chirp that synthesizes a "chirp" signal (a sinusoid whose frequency changes linearly over time). The equations of the chirp signal and its instantaneous frequency are as follows

X(t) = A cos(2πµt2 + 2πf0t + φ)

fi(t) = 2µt + f0

The function should have the following input and output parameters:

Inputs:

  • A: amplitude of the sinusoid (real)
  • f1: starting frequency (real and positive)
  • f2: ending frequency (real and positive)
  • phi: phase of the sinusoid (real)
  • fsamp: sampling rate (integer and positive)
  • dur: total time duration (real and positive)

Output:

  • X: vector containing samples of the chirp signal

2. An error message should be generated if any of the inputs does not meet the specified conditions.

3. To generate the chirp signal, first you need to calculate the slope and intercept of the instantaneous frequency (µ and f0) given the values of the starting and ending frequencies (f1 and f2).

4. The function should convert the signal to audio using the MATLAB function sound.

5. The function should also compute and plot the spectrogram of the chirp signal using the MATLAB function spectrogram with the following syntax:

win=256; noverlap=128; nfft=256;

spectrogram(X , win, noverlap, nfft , fsamp)

6. Call the function in the command window for the following input sets:

i. A=0.5, f1=100, f2=2000, phi=0, fsamp=8000, dur=2

ii. A=0.5, f1=100, f2=2000, phi=0, fsamp=8000, dur=5

iii. A=0.5, f1=300, f2=15000, phi=0, fsamp=8000, dur=2

iv. A=0.5, f1=300, f2=15000, phi=0, fsamp=8000, dur=5

Listen to the signal. What comments can you make regarding the sound of the chirp? Is it linear? Use the sampling theorem (from chapter 4) to explain the behavior of the chirp signal. For each input set, include in your report the spectrogram and a brief description of what you hear and observe.

Question

Compute and plot the spectrogram of beat notes by adding the spectrogram command to your beat notes function. Use the syntax and input values given in part B-5 for the spectrogram command. Call the beat notes function in the command window for the following input set:

A=10, B=10, fc=1000, fdelta=20, fsamp=8000, dur=2

How many frequency components do you expect to see in the spectrogram? at what frequencies? should the frequencies vary with time or be constant for the whole duration of the signal? is the plot consistent with your expectation? why? or why not?

Change the parameters of the spectrogram as follows:

i. win=1024; noverlap=512; nfft=1024;

ii. win=4096; noverlap=2048; nfft=4096;

Comment on how the spectrogram changes in each case. How many and what frequency components do you observe now?

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M92002894

Have any Question?


Related Questions in Other Engineering

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Learning outcomes evaluate multiuser communication and

Learning Outcomes Evaluate multiuser communication and resource sharing techniques; Apply the techniques of, and report on, digital communication applications using Matlab and hardware devices. Assignment Description The ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

Task 1using the lab kit design a circuit for the processor

Task 1: Using the lab kit, design a circuit for the processor to control the output of a connected 7-segment LED display device. You will be provided with a standard common anode 7-segment display of the type FND-507 (or ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As