# Introduction to Signal Processing¶


This numerical tour explores some basic signal processing tasks.

In [2]:
addpath('toolbox_signal')


Signals are 1D vectors, usually stored as |(n,1)| arrays, where |n| is the number of samples.

In [3]:
n = 512;


Load a signal. (function load_signal.m should be in the toolbox of each course)

In [4]:
f = load_signal('Piece-Regular', n); % signal of size n


One can force to be a column vector (just to be sure).

In [5]:
f = f(:);


One can rescale to [0,1] the entries of the signal.

In [6]:
f = rescale(f);


Display the signal.

In [7]:
clf;
plot(1:n, f);
axis('tight');
title('My title'); % title
set_label('variable x', 'variable y'); % axis


You can display several figures using |subplot|

divide the screen in 2x2 and select 1st quadrant

In [8]:
subplot(2, 2, 1);
plot(f); axis('tight');


subplot(2, 2, 4);

clf;