merged dynaField and dynaFieldPar into one matlab script