This paper proposes a user-friendly photovoltaic model implemented in MATLAB software, designed for simulating the characteristics of PV cell modules and arrays. It takes into account factors such as sunlight irradiance and cell temperature to optimize the analysis of photovoltaic power systems. The simulation results validate the model's effectiveness in representing the energy generation characteristics of solar systems.