matlab for loop

问题描述:

matlab for loop
use loop to determine how lont it will take to accumulate $1,000,000 in a bank account if you deposit $10,000 initially and $10,000 at the end of ech year; the account pays 6 percent annual interest. Please help!thx
1个回答 分类:英语 2014-11-13

问题解答:

我来补答
Please speak Chinese in Baidu.
clear;
a=10000;%initially
for n=1:50
a=a*1.06+10000;
if a>1000000
break
end
end
n %answe
 
 
展开全文阅读
剩余:2000