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

Analogy between electrical and nonelectric physical systems, Systems such a...

Systems such as those encountered in mechanics, thermodynamics, and hydraulics can be represented by analogous electric networks, from the response of which the system characterist

Determine ripple factor of half wave rectifier, Illustrate VI Characteristi...

Illustrate VI Characteristics of PN junction diode (10) Illustrate Half Wave Rectifier. Disadvantage of Half Wave Rectifier. Determine ripple factor of Half Wave Rectifier.

Microprocessor system, A burglar alarm system is controlled by a microproce...

A burglar alarm system is controlled by a microprocessor system. The system has three independent circuit each consisting of 7 passive infra red sensors. The controller can be prog

Explain the properties and application of glass, Explain the properties and...

Explain the properties and application of glass. Glass: Ordinary glass is a fine insulator but is too brittle to be used for anything although scientific instrument parts, accu

Calculate the maximum power that transmitted to the load, Calculate the Max...

Calculate the Maximum Power That Transmitted To the Load? A 25 MW load at the 33 kV receiving-end busbar of a short 3-phase transmission line has a power factor of 0.8 lagging.

Discuss the dword assembler directive, Discuss the DWORD assembler dire...

Discuss the DWORD assembler directive with example. DWORD: This defines word type variable. The described variable may have one or more initial values into the dire

How can a jfet be used as a constant current source, Q. How can a JFET be u...

Q. How can a JFET be used as a constant current source? Explain from the drain characteristics. As the VDS voltage is increased from 0 to a few volts, the current will increase

Induced emf, applications of dynamically induced emf

applications of dynamically induced emf

Circuit theory, contribution of circuit theory on the health and quality of...

contribution of circuit theory on the health and quality of life of the citizen

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