1 2 3 4 5 6 7 8
//calculate the current I1.I2 I=12 R1=6 R2=8 I1=I*R2/(R1+R2) I2=I*R1/(R1+R2) disp('I1='+string(I1)+'amps' , 'I2 ='+string(I2)+'amps')