Dispersion calculation functions for main script, written in MATLAB