According to a state television, ousted Egyptian president Mohammed Morsi has died after collapsing in court.