I haven’t been able to achieve a string erection for

Patient: I haven’t been able to achieve a string erection for a couple of months now. Is this most likely a psychological issue or physical? I had surgery in October and also ended a long term relationship. Since then I have been very healthy and at times achieved strong erections, although it is inconsistent compared to before

Doctor: