Posts

Showing posts from 2018

MATLAB Program For Time Delaying And Time Advancement Operations On Signals

Image
A signal is a physical quantity that varies with time, space or any other independent variable by which information can be conveyed. A discrete-time signal is often identified as a sequence of numbers, denoted by x[n], where n is an integer. Signals are broadly classified into continuous and discrete signals. A continuous signal will be denoted by x(t), in which the variable t can represent any physical quantity. A discrete signal will be denoted by x[n], in which the variable n is integer value. The variables t and n are assumed to represent time.  Operations on Signals: a. Time Shifting        In this operation each sample of x(n) is shifted by an amount k to obtain a shifted sequence y(n) Y(n) = {x(n-k)}        If we let m=n-k, then n=m+k and the above operation is given by Y(m+k) = {x(m)}   b.Time Delay: The system has a general form of y[n]= x[n - b], where ‘b’ is any positive integer. Letus take an exam...

MATLAB Program For Basic Arithmetic Operations On Signals

Image
  A signal is a physical quantity that varies with time, space or any other independent variable by which information can be conveyed. A discrete-time signal is often identified as a sequence of numbers, denoted by x[n], where n is an integer. Signals are broadly classified into continuous and discrete signals. A continuous signal will be denoted by x(t), in which the variable t can represent any physical quantity. A discrete signal will be denoted by x[n], in which the variable n is integer value. The variables t and n are assumed to represent time. Operations on Signals: a. Signal addition  It is implemented in MATLAB by the arithmetic operator “+”. However, the lengths of x1(n) and x2(n) must be the same. y(n) = x1(n) + x2(n) b. Signal multiplication It is implemented in MATLAB by the array operator “*”. To multiply sequences of different lengths we can use the following function y(n) = x1(n) * x2(n) Program: clc; close all ; clear all...