This paper presents a generalized photovoltaic model developed using MATLAB/Simulink that allows for the simulation and analysis of PV cell and module dynamics. The model accounts for factors such as sunlight irradiance and cell temperature while producing output characteristics. It enables easy integration into power electronics simulations and is designed to be user-friendly with a graphical interface.