Generate two waveforms-analog waveform, MATLAB Programming

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.

 

Posted Date: 3/12/2013 6:20:44 AM | Location : United States







Related Discussions:- Generate two waveforms-analog waveform, Assignment Help, Ask Question on Generate two waveforms-analog waveform, Get Answer, Expert's Help, Generate two waveforms-analog waveform Discussions

Write discussion on Generate two waveforms-analog waveform
Your posts are moderated
Related Questions
Use MATLAB and a method based on linear predictive coding for the restoration of a clipped voiced speech signal. My proposed algorithm is based on linear prediction where a reco

The following four 4 equations are needed to be plotted as CONTOUR lines on the axes space (C, T) where C is the horizontal axis, and T is the vertical axis. Contour lines for

a. Develop and submit the simulation described above. b. Provide a screen shot of the outputs of the DispConfig and MCResults functions. c. Notes: • Include the PPConfig f

Q. The steady-state circuit i(t) in a series RL circuit due to a periodic sawtooth voltage is given by where θ n = tan -1 (nω 0 L/R).With the parameters V A = 25 V, T 0

Customizing a Plot: Line Types, Color, Marker Types: Plots can be completed in the Command Window, if they are really simple. Though, at many times it is desirable to customiz

I have a biological signal need to be shifted by 12.5 ms and then add all the shefted signals together

I am trying to implement this equation u_t=-\u_x\ using upwind scheme. and as a second step, I need to put some stopping function g(h) where u_t=-g(h)\u_x\ how can I write this on

Create a text file with simulated data. Calculate an experimental y using the first function and some reasonable values for the parameters Add noise Save the x values and ca

coding of sep protocol

Illustration of modifying the matrix elements: If a single index is used with the matrix, the MATLAB unwinds the matrix column by column. For illustration, for the matrix intm