Add matlab script to generate rock file