add a script to covert data to matlab