periodic instantons in matlab