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

Inductors, factors used to classify inductors

factors used to classify inductors

inverters- recifiers and inverters, Inverters Inverter is a device w...

Inverters Inverter is a device which  converts dc power into ac  power at desired output voltage and frequency. Inverters are used in  uninterruptible power  supply  hvdc  tra

What is the advantage of using jfet as an amplifier, Q. What is the advanta...

Q. What is the advantage of using JFET as an amplifier? As an amplifier of small time-varying signals, the JFET has a number of valuable assets. First of all it has a very high

Solar energy, can i use the direct solar energy from solar plate to charge ...

can i use the direct solar energy from solar plate to charge my laptop without a battery

Packet switching over circuit switching, Q. Justify disadvantages and advan...

Q. Justify disadvantages and advantages of packet switching over circuit switching? Ans: Comparison of circuit switching and packet switching showing disadvantages and advan

Avalanche breakdown, Avalanche Breakdown: This type of breakdown takes...

Avalanche Breakdown: This type of breakdown takes place when both sides of junction are lightly doped and consequently the depletion layer is large. In this case, the electric

Zener diode, I need to know about the zener diode

I need to know about the zener diode

Physics, find the resultant of two forces 20N and25N acting at an angle 60...

find the resultant of two forces 20N and25N acting at an angle 60 degree each other

Calculate the energy consumed, A typical 12-V automobile battery, storing a...

A typical 12-V automobile battery, storing about 5 megajoules (MJ) of energy, is connected to a 4-A headlight system. (a) Find the power delivered to the headlight system. (b

State norton''s theorem, Norton's Theorem Nortons Theorem states: "A...

Norton's Theorem Nortons Theorem states: "Any linear circuit containing several energy sources and resistances can be replaced by a single Constant Current generator in para

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