now making sure that overlap taken in to consideration is only when they are on the same frequency
adding in a matlab script to plot our linear approximation