% Script for problem 2.2
disp('Solution of the problem 2.2')

% 2.2(a) - basic circuit
na=[5 5];
da=[1 1.5];

% 2.2(b) - modified circuit
nb=[5 5 0];
db=[1 1.5 1];

t=0:0.1:10;
vo_a=step(na,da,t);
vo_b=step(nb,db,t);
axis([0 10 0 6]);
plot(t,vo_a,t,vo_b)
grid
xlabel('time [s]')
ylabel('vo [V]')
% Add (a) and (b) labels to the graphs
[xa,ya]=ginput;
text(xa,ya,'(a)')
[xb,yb]=ginput;
text(xb,yb,'(b)')