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

Describing the steady state effect , Select the response describing the ste...

Select the response describing the steady state effect of increasing the air gap for otherwise identical devices, one operating with constant DC voltage excitation and one with con

Depletion zone in p-n junction, Depletion Zone in P-N Junction The pow...

Depletion Zone in P-N Junction The power of the depletion zone electric field gets increases as the reverse-bias voltage increases. One time the electric field intensity incre

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

Introduction to power systems, Q. Introduction to power systems? Thomas...

Q. Introduction to power systems? Thomas A. Edison's work in 1878 on the electric light led to the concept of a centrally located power station with distributed electric power

What is ammeter, What is ammeter An ammeter is an instrument used to ca...

What is ammeter An ammeter is an instrument used to calculate current and must be connected in series with the circuit.

Types of cells and batteries, Types of cells and batteries are:- a.  C...

Types of cells and batteries are:- a.  Carbon-zinc cell b. Nickel-cadmium cell c.  Alkaline celld.  d.  Edison cell e.  Mercury cell

Technical loss reduction - power supply, Technical Loss Reduction - Power S...

Technical Loss Reduction - Power Supply 1. Technical loss reduction could be achieved through several measures such as network reconfiguration, load balancing, network recondu

What do you man by subtractive polarity, Q. Show polarity markings for a si...

Q. Show polarity markings for a single-phase transformer for (a) subtractive polarity, and (b) additive polarity.

Determine the voltage regulation at full load, A three-phase, wye-connected...

A three-phase, wye-connected, cylindrical-rotor synchronous generator rated at 10 kVA and 230  V has a synchronous reactance of 1.5per phase and an armature resistance of 0.5  pe

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