[PD] matlab to pd (more)