There is complete matlab code and model parameter extraction for the solar cells and solar panels in the book chapter: Chapter Solar cells and arrays: Principles, analysis and design
I very much agree with the previous answers, I invite you to Matlab Model PV system in all of its criteria but mathematical way, ie using the features equations and obtaining results for the dynamic model.
i want to compare the value of pv power with mppt and with out mppt so i have the value of power with mppt how can i extract value without mppt is that connect the panel directly to load i make like that but the result give me very small power