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

Reflection and retraction in cables and their calculations, How do I calcul...

How do I calculate the line-cable and cable-line values of reflection and refraction coordinates?

Identify the processes involved in fabrication, The first three elements of...

The first three elements of the task are: 1. To critically examine a selection of the components used on this design 2. To recommend materials to be used in making the board

Define and explain numerical aperture, Define and explain Numerical apertur...

Define and explain Numerical aperture? Figure shown below shows an incident ray to the fibre, The light bends at two interfaces, one at the air- core interface and the

Discuss the benefit and limitations of utilizing wind energy, a. Discuss th...

a. Discuss the benefits and limitations of utilizing wind energy for electricity generation. b. Draw the block diagram representation of a thermal power generation unit. Illustr

Dc simulation component, Once you are happy with the biasing components you...

Once you are happy with the biasing components you will need to disable the DC simulation component and enable the SP component. (Right click the component and then select the "com

Pn diode, PN Diode The current-voltage characteristics are of major ...

PN Diode The current-voltage characteristics are of major concern in the learning of semiconductor devices with light entering like a third variable in optoelectronics devic

Decoding logic, show the decoding logic for 11011 code if an active high an...

show the decoding logic for 11011 code if an active high and an active low output required

Electromagnetic torque , Electromagnetic torque  The torque is given...

Electromagnetic torque  The torque is given by the force on the armature winding multiplied by its radius. Force on a conductor in magnetic field B is:  F=B.I.L so, T=B

Estimate the network resistance, When three resistors R1, R2 and R3 are con...

When three resistors R1, R2 and R3 are connected in parallel as shown in the diagram. For these resistors the equivalent resistance is given by: a. Derive a rule to

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