Source: http://www.lpi.tel.uva.es/~santi/master2/matlab/getstart.pdf