MATLAB: Resistors in a circuit

circuitparallelresistors

i was trying to find the amont of the resistor for my circuit based on a function i have, these two resistors are in parallel, can someone please explain me how to write the right function for it to get the amount of the resistors?
here is the eqution i used 1.24 = minimum voltage * ( ( R1 || R2 ) / ( R3 + R1 || R2 ) ).

Best Answer

Try this :
r3 = 100; % for example
Volt_func = @(r)1.24*(r(1)*r(2)+r(2)*r3+r3*r(1))/r(1)/r(2);
rout = lsqnonlin(Volt_func,[50,55])
r1 = rout(1);
r2 = rout(2);
Note : "lsqnonlin" can only be used if you have optimization toolbox. If not, there are few other functions that don't need optimization toolbox.