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

3rd year electrical/electronics project, I`m a 3rd year electrical engineer...

I`m a 3rd year electrical engineering student studying in Canada, and there is a new course they added in my university for 3rd year students called Engineering Project. from the

Unijunction transistor, UniJunction Transistor: (abbreviated as UJT)...

UniJunction Transistor: (abbreviated as UJT), also called the double base diode, is a 2 layer, 3 terminal solid state switching device. The device has a unique characteristi

Fourier transform - filtering, Fourier transform  (filtering) (i) Perf...

Fourier transform  (filtering) (i) Perform low pass filtering in the frequency domain. Write and m-file lowfft.m which does this operation. lowfft.m function lowfft im

Image frequency for an fm station, Q. Show that the image frequency for an ...

Q. Show that the image frequency for an FM station does not fall in the range of 88.1-107.9 MHz, regardless of the choice of high- or low-side local oscillator.

DC motor, why DC motors use field winding instead of armature winding

why DC motors use field winding instead of armature winding

Sparking with electrical equipment, Sparking : In ordinary domestic situat...

Sparking : In ordinary domestic situations, small electrical sparks are usually not hazardous. In certain conditions which are frequently encountered in science labs, even the sma

Explain in brief about the robots, Explain In brief about the Robots - ...

Explain In brief about the Robots - Robot is programmed with a series of instructions that enable it to carry out a series of tasks - On the other hand, an operator manually

Semiconductors, Why do potential barriers breaks when a breakdown voltage i...

Why do potential barriers breaks when a breakdown voltage is application to semiconductor

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