One mathematical way of understanding signals is to see them as functions. A signal $x[n]$ carries some kind of information, having a value $x[n]$ at every given point of its independent time variable $n$. Another, and complementary, way of understanding signals is to consider them as vectors within vector spaces. By doing this we will be able to apply various tools of linear algebra to help us better understand signals and the systems that modify them.
Vector spaces
A vector space $V$ is a collection of vectors such that if $x, y \in V$ and $\alpha$ is a scalar then $ \alpha x \in V \text{and} x+y \in V $In words, this means that if two vectors are elements of a vector space, any combination or scaled version of them is also in the space. When we consider the scaling factors, we mean $\alpha$ that are either real or complex numbers.There are many different kinds of vector spaces, but the two in which we are especially interested are $R^N$ and $C^N$. $R^N$ is the set of all vectors of dimension $N$, in which every entry of the vector is a real number, and $C^N$ is exactly the same, except the entries are complex valued.
Starting small – a two dimensional vector space
You are already familiar with a prominent example of a vector space, the two-dimensional real coordinate space $R^2$. Every ordered combination of two real numbers is a vector in this space, and can be visualized as a point or arrow in the two-dimensional Cartesian plane. Suppose $x$ and $y$ are each vectors in $R^2$. $x=\begin{bmatrix}x[0] \\ x[1]\end{bmatrix} $y=\begin{bmatrix}y[0] \\ y[1]\end{bmatrix} where $x[0], x[1], y[0], y[1]\in R$. The indices we use to refer to elements of the vector start their numbering at $0$. This is the common convention in signal processing and many mathematical languages, like $C$, but note that vector indices in MATLAB start with 1.Scaled versions of these vectors are still within the space: $\alpha x=\alpha \begin{bmatrix}x[0] \\ x[1]\end{bmatrix}=\begin{bmatrix} \alpha x[0]\\ \alpha x[1] \end{bmatrix}\in R^2$So is the sum of two vectors: $x+y=\begin{bmatrix}x[0] \\ x[1]\end{bmatrix}+\begin{bmatrix} y[0]\\ y[1] \end{bmatrix}=\begin{bmatrix}x[0]+y[0]\\ x[1]+y[1]\end{bmatrix}\in R^2$
The vector space $r^n$
Let's now move from two dimensional vectors to those with $N$ dimensions, each taking a real valued number: $x=\begin{bmatrix}x[0]\\ x[1] \\ \vdots \\ x[N-1]\end{bmatrix}$, where $x[n]\in\Real$So we have a mathematical entity $x$, with $N$ ordered real values associated with it. Stated this way, we see that $x$ is a signal, simply expressed in a vector form $x$ as opposed to the signal notation form $x[n]$, but both forms refer to the exact same thing.Just as with in 2-dimensions, we can perform the same operations on the $N$-dimensional signal/vector $x$: