layers Calculation of impedance and wave-amplitudes for layered piezoelectric structures See layers.m for documentation.