Generated frequency graphs and matlab script fixes