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

What is difference between 16 bit & 32 bit version of c/c++, What is the ma...

What is the main difference between 16 bit and 32 bit versions of C/C++ while using in line assembler. The 32-bit applications are written by using Microsoft Visual C/C++ for t

Inverting comparator, what is the graph of inverting comparator,if input vo...

what is the graph of inverting comparator,if input voltage less than reference voltage

Electrostatic sprayer, I would like to know the materials needed for electr...

I would like to know the materials needed for electrostatic sprayer.

Estimate the required bandwidth using Carson''s rule, A 10-kHz tone is used...

A 10-kHz tone is used to frequency modulate a carrier; the peak deviation is 75 kHz. Use Carson''s rule to estimate the bandwidth.

Calculus, area bounded by the curve y=3x(x-2)^2 and the x-axis

area bounded by the curve y=3x(x-2)^2 and the x-axis

Transient, The winding of an electromagnet has an inductance of 3H and a re...

The winding of an electromagnet has an inductance of 3H and a resistance of 15?. When it is connected to a 120 V d.c. supply, Determine:

Discuss one application of 8254 programmable interval timer, Discuss any on...

Discuss any one application of 8254 Programmable Interval Timer in detail. Mode1 causes the counter to treat as a retriggerable monostable multivibrator one shot. The G inpu

Determine harmonic factor hf of the input current, Q. Consider a full-wave ...

Q. Consider a full-wave single-phase bridge recti?er circuit with dc motor load, as shown in Figure (a). Let the transformer turns ratio be unity. Let the load be such that the

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