Preliminary matlab analysis