It has not been revealed why he was in hospital.
The convicted murderer was in court yesterday for a postponement of his sentencing hearing.
The court also heard that the electronic tracking devices meant to monitor his movements have been malfunctioning.
His advocate‚ Samantha Jackson‚ said that the devices kept incorrectly sending warnings to Pistorius that he had violated his bail conditions while he was at home.
Correctional Services sorted out the problem and Ledwaba has set down sentencing proceedings to run from June 13 to June 17.
Pistorius is out on bail of R10 000.