By using the Nikiforov-Uvarov method, the hyper-radial Schrödinger equation is analytically solved, in which the real modified potential is employed at finite temperature and baryon chemical potential. The eigenvalue of energy and corresponding wave function are obtained in the isotropic and anisotropic media in hot and dense media. The present resultsshow that the binding energy of nucleon and some heavy baryon decrease strongly in hot medium and decreases slightly with increasing baryon chemical potential. In addition, binding energy for each baryon is more bound in an anisotropic medium in comparison with its value in an isotropic medium. The dissociation of temperature of each baryon is above a critical temperature and it increases in the anisotropic medium. The dissociation of temperature is slightly decreased in the hot medium when the baryon of chemical potential is considered. A comparison is studied with the available studies. We conclude that the present study provides a good description of the nucleon and some heavy baryon in hot and dense media in the isotropic and anisotropic systems.