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

Wiring a plug , Wiring a Plug : Let us consider the problem of connect...

Wiring a Plug : Let us consider the problem of connecting a 16 A plug, commonly known as 15 A or power plug to an electrical appliance. Do you use any old bit of wire, or any

Emi, #quest explain cro..

#quest explain cro..

Saturation or active mode, Saturation or active mode While V GS  ...

Saturation or active mode While V GS   > V th  and  V DS   > (V GS   - V th ) The switch is turned on, and a channel has been made that allows current to flow

Fet operation, FET operation: Figure: I-V characteristics and o...

FET operation: Figure: I-V characteristics and output plot of a JFET n-channel transistor. The FET manages the flow of electrons (or electron holes) from the sourc

What is cd-rom, Compact Disc - Read Only Memory. A CD-ROM is any compact di...

Compact Disc - Read Only Memory. A CD-ROM is any compact disc which having computer data. These discs can store enormous amounts of data (up to 640 megabytes). If there is a large

Find the voltage across the 50-resistor, Q. Write and execute a PSpice prog...

Q. Write and execute a PSpice programto analyze the resistor bridge circuit shown in Figure to solve for the node voltages and the voltage-source current. Then find the voltage acr

Electrical machine, what happens when we apply DC supply to transformer pri...

what happens when we apply DC supply to transformer primary

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