An anomalous "S and W-shaped" temperature dependence of photoluminescence (PL) peak position in InGaN and MgZnO layers have been simulated by calculating energy spectrum of excitons. Using the Gaussian distribution model for localized states and changing basic function parameters was analyzed the influence on the optical properties of semiconductors.
Simulated dependence was analyzed and compared with experimental results.