Sampling, Electrical Engineering

Assignment Help:

Write an m-file "sampling.m", which will take as an input:  a signal and a sampling step and will display the sampled signal and the magnitude of its Fourier transform.

sampling.m

function sampling(x,step)
plot(x(1:step:end),'-o')
plot(abs(fft(x(1:step:end))))

use x as the input signal

x=(sin([0:pi/8:4*pi]))

Run the function with step=1.Increase the sampling step 2,4,8.... and observe what happens with the spectrum.

What happens with the spectrum as the sampling step increases?

What should be the minimum sampling frequency (maximum sampling step) of a signal?


Related Discussions:- Sampling

Electricity, Describe the nature of electricity

Describe the nature of electricity

Draw a block diagram of a 4-bit pipo register, Q. Draw a block diagram of a...

Q. Draw a block diagram of a 4-bit PIPO register and briefly describe its operation. Q. Taking parallel data from a computer to be fed out over a single transmission line needs

what does quality factor mean, The Quality factor is also explained, as Q....

The Quality factor is also explained, as Q. So it is a number, which shows the lossness of a circuit. Higher the Q, the lower are the losses. The quality factor is calculated o

Encoder, decimal to BCD code encoder active low

decimal to BCD code encoder active low

Calculate the pu voltage and line to line voltage, The one line diagram of ...

The one line diagram of a simple power system is shown below. The data of the system are given in the table below. (a) Draw the impedance diagram of the system and mark all impe

Explain properties and application of aluminium, Explain properties and app...

Explain properties and application of Aluminium. Properties of Aluminium: 1) Pure aluminium in colour is silver white. 2) Aluminium is a ductile metal and can be put

Radiation pattern of a half-wave dipole antenna, Q. The radiation pattern o...

Q. The radiation pattern of a half-wave dipole antenna is given by (a) Sketch the radiation pattern in the principal plane of xz containing angle θ. (b) Determine the beam wi

Dc motor, what is the reason of low meagger result of dc motor

what is the reason of low meagger result of dc motor

Multiplexed address data bus - pins and signals , Multiplexed Address/ Data...

Multiplexed Address/ Data Bus Pins AD 7 - AD) are used for multiplexed address data bus. This bus is bidirectional  input output  and  serves two  purpose. Initially the bus

Determine the value of maximum power, Determine the value of maximum power:...

Determine the value of maximum power: Determine the value of load resistance, R L for which the source shall transfer the maximum power. Also determine the value of maximum p

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