Hope you have modeled the solar in simulink or in mfile. Generally there will be three input (G,T,V/I) and one output (I/V). Keeping G,T fixed vary the other input linearly (V/I). For that you can use a ramp signal available in simulink. Now use 'xy scope' or save the data in workspace for plotting.