mainly update matlab analysis