Create frequency.m