Skip to content

Repository files navigation

WHO-Data-Manipulation using MATLAB

Relevance of the signal operations:

1) Auto-correlation

Auto-correlation is a representation of the degree of similarity between a input time signal series and a delayed version of itself over running/sequential time intervals. In this operation a single time series is considered. Its main purpose is to find non-randomness in data.

Example Code for auto-correlation in MATLAB for lag=15, acf = autocorr(Y,'NumLags',15);

2) Cross-correlation:

Cross-correlation is used to find similarity of two series as a function of the displacement of one with respect to the other (shifted/lagged). In this operation, two different time series are evaluated at the same instance. If the cross-correlation coefficient is 1, then the two signals under consideration have a high similarity/direct relationship (Refer figure given in the previous section).

Example code for Cross-correlation in MATLAB is: r=xcorr(x,y) [c,lags] = xcorr(x,y);

3) Signal Addition

Addition of two time-series/signals is the addition of their corresponding amplitudes or Y-axis values.

Example MATLAB code for addition: z=y1+y2; Where, y1=signal 1 and y2=signal 2

4) Signal subtraction

Subtraction of two time-series/signals is the subtraction of their corresponding amplitudes or Y-axis values.

Example MATLAB code for Subtraction: z=y1-y2; Where, y1=signal 1 and y2=signal 2

5) Signal Multiplication

Multiplication of two signals is the multiplication of the amplitudes or the Y-axis values.

Example code for multiplication in MATLAB: z=y1.*y2; Where, y1=signal 1 and y2=signal 2

6) Time-shifting

Time shifting of the signal refers to the shifting of the signal either by adding or subtracting along the time axis.

The two kinds of shifts are:

  1. Negative shift, x(t+to) or advanced signal
  2. Positive shift, x(t-t0) or delayed signal

7) Time-Scaling

Time scaling modifies the periodicity of the signal by keeping the amplitude constant.

There are two types of scaling:

  1. Compression of the signal
  2. Expansion of the signal

Where, (A)- Expanded signal (B)- Compressed signal

Example code for Time-Scaling in MATLAB: t=x/b; (or) t=x*b; Where, x-Input signal b-Scaling factor

8) Time-Reversal

Time-reversal is applicable on both continuous and discrete signal. The Y-axis acts as a reflecting medium. The signal appears reflected/reversed with respect to the Y-axis.

Where, x(t) is the original signal and x(-t) is the reversed signal. Example code of Time-Reversal in MATLAB: m=-x; (or) c=fliplr(x); Where, x-original input signal.

9) Convolution:

Convolution is the amount of overlap of one function (here signal) x1 as it is shifted over the other function x2 (here signal). Mathematically, it is defined as the integral of the product of the two functions after one is reversed and shifted. It is a way of combining two signals to form the third signal based on the knowledge about the system’s unit impulse response.

Example code for Convolution in MATLAB: z=conv(y1, y2); Where, y1-Signal-1 y2-Signal-2

The code given in this repository covers the implementation techniques for a subsection of the provided dataset to help comprehend how the signal operations are performed.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors