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

Auxiliary carry fla - registers, Auxiliary Carry Fla - Registers If ca...

Auxiliary Carry Fla - Registers If carry  is generated  from D 3   to D 4 in the accumulator after any arithmetical or logical  operations. Auxiliary  carry flag (AC) is set

Pnp bipolar junction transistor, PNP The other kind of BJT is the PNP ...

PNP The other kind of BJT is the PNP with the letters "P" and "N" standing for the majority charge carriers inside the dissimilar regions of the transistor. Figure:

What do you mean by continuous signals, Q. What do you mean by Continuous s...

Q. What do you mean by Continuous signals? Continuous signals are described by time functionswhich are defined for all values of t (a continuous variable). Commercial broadcast

Determine the analog output voltage, Q. Analyze the 2-bit R-2R ladder-netwo...

Q. Analyze the 2-bit R-2R ladder-network D/A converter, and corresponding to binary 01, 10, and 11, obtain the equivalent circuits and determine the analog output voltage as a frac

Show the characteristics of general - purpose capacitors, Q. Show the Chara...

Q. Show the Characteristics of General - Purpose Capacitors? The working voltage for a capacitor is generally specified by themanufacturer, thereby giving the maximum voltage t

Matlab, fast decoupled program

fast decoupled program

Explain the hysteresis loop of a magnetic material, Explain the hysteresis ...

Explain the hysteresis loop of a magnetic material. Hystereses loop-Below the Curie temperature all-ferromagnetic materials show the identified hysteresis in the B (i.e. flux

Obtain an expression for the closed-loop transfer function, Q. A noninverti...

Q. A noninverting op-amp circuit and its closed-loop representation are given in Figure. Obtain an expression for the closed-loop transfer function H(ω) = Y (ω)/X(ω) and comment on

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