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

for i=[1:9]
    BM1(i+1)=BM1(i)+0.12*BM1(i);
end

for i=[1:119]
    BM2(i+1)=BM2(i)+0.01*BM2(i);
end

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

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

hold all
x1=[1:10]*12-12;
plot(x1,BM1,'--+r')

legend('Monthly','Yearly')