How to plot the growth of interest in matlab (time on x-axis and current balance on y-axis)?
조회 수: 8 (최근 30일)
이전 댓글 표시
Interest is compounded continuously; P = pe^(rt) represents the growth of your savings.
P= current balance
p= initial balance
e= (number 'e') approx. 2.72
r= growth rate (expressed as decimal fraction)
t= time invested (years)
Determine the amount in your account at the end of each year if you invest $1000 at 8% (0.08) for 30 years. Plot time on the x-axis and the current balance on the y-axis.
댓글 수: 0
답변 (1개)
Laurent
2013년 9월 17일
I'll give you one hint, because it seems to me that this is homework.
t=[0:1:30];
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Financial Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!