first versions of matlab scripts