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

Find the average power absorbed by each element, Q. Let v(t) = Vmax cos ωt ...

Q. Let v(t) = Vmax cos ωt be applied to (a) a pure resistor, (b) a pure capacitor (with zero initial capacitor voltage, and (c) a pure inductor (with zero initial inductor current)

Difference between div and idiv instructions, Mention how do the DIV & I...

Mention how do the DIV & IDIV instructions differ in their functionality DIV: Unsigned numbers division and IDIV: Signed number division.

Digital electronics, Design a logic circuit when to provide an output when ...

Design a logic circuit when to provide an output when any two or three of four switches are closed.

Ac, power factor improvement

power factor improvement

Matlab antenna diversity, please I need help in matlab to program complex e...

please I need help in matlab to program complex expression in antenna diversity please

Principal of bipolar junction transistor, Principal of Bipolar junction tra...

Principal of Bipolar junction transistor: A bipolar junction transistor (BJT) is a three-terminal electronic device that constructed of doped semiconductor material and might

Write explanatory notes on 8284 clock generator, Write explanatory notes on...

Write explanatory notes on 8284 Clock generator. The 8284 is an ancillary element to the microprocessors. Without this clock generator, a few additional circuits are needed to

Biasing, Biasing: Bipolar transistor amplifiers have to be properly bi...

Biasing: Bipolar transistor amplifiers have to be properly biased to operate properly. In circuits made up with individual devices (discrete circuits), biasing networks contai

Determine voltage ratio for the circuit, Q. Determine v o /v i for the ci...

Q. Determine v o /v i for the circuit shown in Figure if the op amps are ideal.

Transistor, can you differentiate the alpha,beta and gamma

can you differentiate the alpha,beta and gamma

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