A voltage divider

% A voltage divider.

r =  0: 0.01: 1;
rL = 0.25; UL2U1 = (r*rL)./(r – r.\^{}2 + rL);
rL = 2.5; UL2U2 = (r*rL)./(r – r.\^{}2 + rL);
noload= r;
plot(r, UL2U1, r, UL2U2, r, noload)
xlabel(‘R2/R’), ylabel(‘UL/U’)
text(r(50), noload(60), ‘No load’)
text(r(50), UL2U1(50), ‘RL/R = 0.25’)
text(r(50), UL2U2(50), ‘RL/R = 2.5’)