Hi,
No, masturbation doesn't affect erection.
Being tired can be the cause. You see, to get a hard erection your body requires energy and if there is a poor source of energy, erection problems can occur.
Please, don't worry, as it is another cause of sexual problems. Try to relax and get enough rest and you will see the improvement.
Thank You Doctor I googled them and did them.So does this mean the mastrubation did not harm me doctor ?
Do abdominal breathing for 10 minutes twice a day. you can do male deer exercise and add one more exeercise called kegel. Google all the three, learn and practice. Masturbation is a natural habit. It does not harm if is done in one's limit without outside stimulation. The worrying about the sex problem is more harmful than the act. Do the above exercise to recover your strength.