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

Matlap code, matlap code to solve the fast decoupled method

matlap code to solve the fast decoupled method

What do you mean by direct coupling, Q What do you mean by Direct coupling?...

Q What do you mean by Direct coupling? In this method the a.c. output signal is fed directly to the next stage. No reactance is included in this coupling network. Special d.c.

Discuss dos function call with one example, Discuss DOS function call with ...

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

What are the benefits of ccs over in-channel signalling, Q. What are the be...

Q. What are the benefits of ccs over in-channel signalling? The benefits of CCS over in-channel signalling are listed below: a. Information can be exchange between processor

Advance manufacturing technologies.., what are theold and new technologies ...

what are theold and new technologies of manufaturing of the harvestor. atleast of five components

Ic packaging, which type of ic package is more advantageous,suitable and ve...

which type of ic package is more advantageous,suitable and versatile

Dc machines, explain dynamically induced emf and derive expression for it

explain dynamically induced emf and derive expression for it

Explain limit signal spectrum to prevent aliasing, Explain Limit Signal Spe...

Explain Limit Signal Spectrum to Prevent Aliasing? The sampling frequency should at least be two times that of the highest frequency in the incoming signal to avoid aliasing. T

Find the capacitor voltage and current, Q. The energy stored in a 2-µF capa...

Q. The energy stored in a 2-µF capacitor is given by w c (t) = 9e -2t µJ for t ≥ 0. Find the capacitor voltage and current at t = 1s.

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