added mdot.m