I am using arduino and solar panels to feed the data to MATLAB to get the I-V and P-V characteristics using serial ,fopen etc and I have successful ly created the code. Can anyone help me with circuit. I use a potential divider that has 27k resistor and 47k pot. I vary the pot to get the change in voltage. I take two voltage reading across the resistor and divide by the fixed resistance to get current