The former Boston Red Sox outfielder had surgery at Massachusetts General Hospital after experiencing chest pains. His discharge was announced by team spokesman John Blake.
Yastrzemski, the last player to hit for the Triple Crown by leading the AL in batting average, homers and RBIs in 1967, turned 69 last Friday.
His family released a statement after the surgery saying it was "a complete success."
Yastrzemski took over for Ted Williams in left field in 1961 and spent his entire career with the Red Sox before retiring after the 1983 season.
He hit 452 home runs, drove in 1,844 runs, had 3,419 hits and batted .285. He won seven Gold Gloves and was an 18-time All-Star.
After finishing ninth in the 10-team AL in 1966, Boston finished first in 1967 before losing the World Series in seven games to St. Louis. Yastrzemski led the AL that year with a .326 average, 44 homers and 121 RBIs.
Reds SS Gonzalez has knee surgery, out for 2008
Another successful surgery
Hewitt out of U.S. Open due to hip surgery
BoSox’s Ortiz’s cast replaced, Colon leaves game