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

Ac, power factor improvement

power factor improvement

The b-h curve for ferromagnetic materials, Ferromagnetic materials have som...

Ferromagnetic materials have some 'residual magnetism' even when the current (proportional to H) is zero. Material with strong residual magnetism are useful for making permanent ma

What are operations performed on data in 8085, What are operations performe...

What are operations performed on data in 8085 The various operations performed are Store 8-bit data Perform arithmetic and logical operations Test for conditio

Find the minimum rate of sampling, Find the minimum rate of sampling that m...

Find the minimum rate of sampling that must be used to convert the message into digital form: (a) If an audio message has a spectral extent of 3 kHz. (b) If a television sign

Cpopy 16 bit data register pair , cpopy 16 bit data  Register pair E...

cpopy 16 bit data  Register pair Example  : Copy  16 bit  data 3 E 21H  in register pair BC Solution   :The  statement  is LXI B 3E 21H 16  bit data  3E 21H in reg

Why digital signal processing require specialized hardware, Why does digita...

Why does digital signal processing require specialized hardware? A) It needs to perform analog as well as digital functions. B) General-purpose microprocessors cannot perfor

Determine n-type semiconductor of example which material, N-type semiconduc...

N-type semiconductor is an example of (A)  Extrinsic semiconductor.            (B) Intrinsic semiconductor. (C)  Super conductor.                        (D)  Insulators.

Find the maximum probable percentage error, Q. A current of 65 A is measure...

Q. A current of 65 A is measured with an analog ammeter having a probable error of ±0.5% of full scale of 100 A. Find the maximum probable percentage error in the measurement.

Simulink, I need help in Simulink model (.mdl) (discrete) for the topic “se...

I need help in Simulink model (.mdl) (discrete) for the topic “sensorless control of the pmsm using Back EMF method” with detailed explanation of the estimator (Back EMF method).

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