Professional Documents
Culture Documents
Matlab Code
Matlab Code
r1=1;
r2=2;
r3=4;
r4=8;
disp(['The output voltage for first case is ' num2str(vout1) 'V']); % final answer
for first case
The output voltage for first case is -5.625V
disp(['The output voltage for second case is ' num2str(vout2) 'V']); % final
answer for second case
The output voltage for second case is -3.75V
disp(['The output voltage for third case is ' num2str(vout3) 'V']); % final answer
for third case
The output voltage for third case is -6.25V