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

Voltages source inverter - vsi, Voltages source inverter ( VSI) A volta...

Voltages source inverter ( VSI) A voltage  source  inverter is a constant voltage  source  which  is having  negligible  impedance. In these inverters the amplitude of output

Aerodynamic principles & aircraft design, Define the aircraft axes & degree...

Define the aircraft axes & degrees of freedom. Analyse the different maneuvers that can be done by an aircraft.

Characteristics of stepper motors - stepper motor , Characteristics of Ste...

Characteristics of Stepper Motors The main  characteristic of stepper  motors is torque  versus stepping or  pulse  rate. It give the  variation  of torque as a function of pu

Data copy operations, Data Copy Operations Instructions which  are used...

Data Copy Operations Instructions which  are used  to copy data from  one location to another  location kept in  this category. The location from  which data  is copied  is cal

Explain priority interrupts of 8085, Explain priority interrupts of 8085. ...

Explain priority interrupts of 8085. The 8085 microprocessor has five interrupt inputs. They are TRAP, RST .5, RST 6.5, RST 5.5, and INTR. These interrupts have a fixed prio

The time for the capacitor voltage to fall to 20 v, A capacitor is charged ...

A capacitor is charged to 100 V and then discharged by a 50 kΩ resistor. If the time constant of the circuit is 0.8 s, verify: (a)  The value of the capacitor, (b)  The time

What is interrupt service routine, What is interrupt service routine? I...

What is interrupt service routine? Interrupt means to break the sequence of operation. Whereas the CPU is executing a program an interrupt breaks the normal sequence of impleme

Memory address - address bus , Memory Address The memory  address is of...

Memory Address The memory  address is of 16  bits. It ranges from 0000?H to  FFFH 16bits address lines of 8085 microprocessor are  capable  of addressing 216 i e 65, 536, ( or

Zero flag - registers , Zero Flag - Registers If the  result of any  a...

Zero Flag - Registers If the  result of any  arithmetical  or logical  operation in the accumulator  is zero i ,e  all the bits  of accumulator  ( with  some exceptions )  are

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