Code Monkey home page Code Monkey logo

matlab-scripts's Introduction

MATLAB-Scripts

An example of amplitude modulation (AM) by adding sinusoids of the same frequency using the Beat function with 200 Hz center frequency.

am beatnote2

Interpolation is the reconstruction of the continuous-time signal from its discrete-time digital samples. This process for signal reconstruction is used in digital-to-analog converters. A low-pass filter (LPF) is needed in the interpolation process to bandlimit the signal to satisfy the sampling criteria. Since the ideal low-pass filter is difficult to construct, a Zero-Order Hold (ZOH) and Linear Interpolator are used to approximate this low-pass filter.

Bandlimited_Interpolation outputs the impulse response of the Linear Interpolator and the Zero-Order Hold.

impulse response

The magnitude of the frequency responses of the signal reconstruction methods is obtained by using fft. Note the cutoff frequency of the filter is ฯ€/5 because a value of L = 5 was used in the impulse response plots. In the passband, the ZOH best approximates the ideal LPF but the ZOH results in large sidelobes in the stopband. The low amplitude of the sidelobes in the Linear Interpolator frequency response show that it is a better choice in minimizing spectral leakage and tracking the stopband of the ideal LPF.

freqrespzoh

matlab-scripts's People

Contributors

ismael-k avatar

Stargazers

 avatar  avatar

Watchers

 avatar

matlab-scripts's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.