clear
BM1(1)=1000;  %model 1 initial condition
BM2(1)=1000;  %model 2 initial condition

for i=[2:10]
    BM1(i)=BM1(i-1)+0.12*BM1(i-1);
end

for i=[2:120]
    BM2(i)=BM2(i-1)+0.01*BM2(i-1);
end

%figure(1)
clf
x2=[1:120];
plot(x2,BM2,'-*b')

xlabel('Time (Month)')
ylabel('Balance(Dollar)')
title('BANK MODELS')

hold all

x1=[0:9]*12+1
plot(x1,BM1,'--+r')

legend('Monthly','Yearly')