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

Digital electronics, With the use of clocked JK flip-flops, draw and explai...

With the use of clocked JK flip-flops, draw and explain the working principle of a 3-bit binary ripple counter.

Where does the real mode on the cpu come from, The original 8086, which onl...

The original 8086, which only had 1 MB of memory. This megabyte is dividing into low memory for IRQ tables, application memory and high memory.

A battery consists of five cells in series, A battery having of five cells ...

A battery having of five cells in series. Each cell is 2.5V and internal resistance is 0.05 Ω. A battery is linked to the load resistance of 15Ω. Verify: i.  Total e.m.f

Determine the h-parameters for the network., Q. A negative impedance conver...

Q. A negative impedance converter circuit shown in Figure is used in some applications where inductors cannot be utilized or where negative resistance is beneficial. (a) Determi

Strain gauge bridge circuit, Explain kinds of strain gauge bridge circuits ...

Explain kinds of strain gauge bridge circuits and resistance strain gauges.

Half-wave rectifier, Half-wave rectifier: A half-wave rectifier will j...

Half-wave rectifier: A half-wave rectifier will just only give one peak per cycle and for this reason and other reasons is only employed in extremely small power supplies. A f

Bjt, what is compensation of bjt

what is compensation of bjt

Factors which affect the inductance of an inductor, Factors which affect th...

Factors which affect the inductance of an inductor include:  i)  The number of turns of wire (N) - more turns the higher the inductance ii)  The cross-sectional area of the

Operation - unijunction transistor, Operation - unijunction transistor: ...

Operation - unijunction transistor: Operation : Imagine that the emitter supply voltage is turned biased and a small emitter reverse current flows. Then the intrinsic stand

Methods of material handling, Q. Show the Methods of material handling? ...

Q. Show the Methods of material handling? Methods of material handling during operations and maintenance activities shall be considered for all facilities to ensure that the fi

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