quick script to create matfiles for use with NBS toolbox