Because physical modeling of the PV cell is inefficient to analyze the output data of photovoltaic cells so with the help of mathematical modeling approach, the analysis is done. In this study the mathematical modeling of the photovoltaic cell and the step-by-step simulation procedure of photovoltaic cells in the matlab Simulink is shown. Photovoltaic array made up of photovoltaic modules has non-linear characteristics. This photovoltaics simulation is based on the fundamental mathematical equation of the photovoltaic cell taking all the physical and environmental effects such as cell temperature and irradiation. To determine the characteristics of PV modules in various situations, namely at various levels of irradiance and temperature. The results indicated that the power output, voltage, and current output of a PV module may be determined by varying the irradiation and temperature. In this paper a relation between cell temperature, irradiation and efficiency is proposed and all the effects are analyzed.