Generate two waveforms-analog waveform, MATLAB Programming

Assignment Help:

The purpose of this lab is to introduce students to the basic concept of overtones. In order to generate two tones at the same time, you need to generate two waveforms and add them together using the following equation:

W(t) = A0 + A1 sin(2πf1 t + θ1)  +  A2 sin(2πf2 t + θ2)

Where W is the pulse width at time t, f1and f2 are the angular frequencies of the tones, and theta1 and theta2 are the phases.  The amplitudes A0, A1, A2 must be chosen by you so that the pulse width stays positive and is not greater than the sampling period.

PWM can be used to represent any analog waveform. At a uniform time interval the signal can be sampled and translated into a digital form representing its corresponding analog value. The faster the sampling rate, the smoother the reconstructed analog waveform will be. The sampling rate is expected to be much higher than the highest frequency of the sinusoidal waveform that you will produce, in order to generate a smoother waveform. The Nyquist sampling theory states that the sampling frequency should be at least twice the maximum frequency of the signal.

The PWM signal is simply a square wave with a variable duty cycle. The duty cycle of the square wave is proportional to the sampled value of the analog waveform as illustrated in Figure 2 for a sinusoidal analog waveform. Duty cycle is the fraction of time that a PWM signal is active in one sampling period.

 


Related Discussions:- Generate two waveforms-analog waveform

Statistically stationary environment, For a statistically stationary enviro...

For a statistically stationary environment it would be advantageous to use gear shifting, that is to reduce the adaptation gain with time. To illustrate this, try using a varying a

Illustration of for loop, illustration of for loop: illustration, to p...

illustration of for loop: illustration, to print a column of numbers from 1 to 5: for i = 1:5 fprintf('%d\n',i) end   This loop can be entered in the Command Wi

Determine the ball temperature , In the manufacturing of ball bearings, the...

In the manufacturing of ball bearings, the components, such as the ball, are hardened through a process of heating and then rapid cooling or "quenching" by submersion in an oil or

Matlab scripts, Matlab Scripts: Once a problem has been examined, and ...

Matlab Scripts: Once a problem has been examined, and the algorithm for its answer has been refined and written, the algorithm then is translated into the specific programming

None, La proporción de empleados de una empresa que usan su auto para ir al...

La proporción de empleados de una empresa que usan su auto para ir al trabajo es 5:16. Si hay un total de 800 empleados

Simple related plot functions, Simple Related Plot Functions: The othe...

Simple Related Plot Functions: The other functions which are useful in customizing plots are the figure, clf, hold, leg-end, and grid. The short description of such functions

How to start working with simpower, How to Start Working withSimpower: ...

How to Start Working withSimpower: 1. In the Simulink screen, open a new "Model" (File àNewà Model), name it and save it. 2. Expand the SimPowerSystems library, select and

Illustration of input function, Illustration of Input function: For il...

Illustration of Input function: For illustration, >> rad = input('Enter the radius: ') Enter the radius: 5 rad = 5 If character or string input is preferred, 's' s

Printing - matrices, Printing - matrices: For matrices, the MATLAB unw...

Printing - matrices: For matrices, the MATLAB unwinds the matrix column by column. For illustration, consider the random 2 × 3 matrix as shown below: >> mat = randint(2,3,[

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd