Uploading core matlab functions