Penile erection is a complex interaction of both halves of your autonomic (automatic) nervous system, your blood circulation, and your emotions. Therefore, the patient may have symptoms suggestive of a psychological problem, such as ]]>depression]]> , and/or a medical problem, such as ]]>diabetes]]> . Any one of these conditions can lead to erectile dysfunction.