matlab for loopuse 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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 21:55:21
matlabforloopuselooptodeterminehowlontitwilltaketoaccumulate$1,000,000inabankaccountifyoudeposit$10,

matlab for loopuse 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
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

matlab for loopuse 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
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 %answer

matlab for loopuse 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 matlab中的'是什么意思data_wiener(l,:) = (wiener_time * (data_freq(l,:).')). matlab index=l(2)+1:l(7)是什么意思 L is for love. l pray for l ran out for l wish for 初学matlab ,克赖斯基矩阵分解,程序哪里错误function [L,L']=myLL'(A)[n,n]=size(A);L=zeros(size(A));L'=zeros(size(A));L(1,1)=sqrt(A(1,1));L(2:end,1)=A(2:end,1)/L(1,1);for j=2:nfor i=j+1:nL(j,j)=sqrt(A(j,j)-L(j,1:j-1)*L(j,1:j-1));L(i,j)=(A MATLAB 的for语句的使用 MATLAB里 for n=1:a matlab中for i=1: matlab for i=1:length(y) matlab 里for i=1:[18550 matlab中保存循环中的值for k=mj:-1:1for l=nj:-1:1%if(Ri(l,k)==Rj(l,k)&&Gi(l,k)==Gj(l,k)&&Bi(l,k)==Bj(l,k)&&nj==1)if(I(l,k,1)==J(l,k,1)&&I(l,k,2)==J(l,k,2)&&I(l,k,3)==J(l,k,3)&&nj==1) w=k+1;break;endend end如上,我要想把达到if条件的k+ matlab中保存循环中的值for k=mj:-1:1for l=nj:-1:1%if(Ri(l,k)==Rj(l,k)&&Gi(l,k)==Gj(l,k)&&Bi(l,k)==Bj(l,k)&&nj==1)if(I(l,k,1)==J(l,k,1)&&I(l,k,2)==J(l,k,2)&&I(l,k,3)==J(l,k,3)&&nj==1) w=k+1;break;endend end如上,我要想把达到if条件的k+ matlab中调用solve函数出错?怎么解决clc;clear all,close all;l=[20 50 100 200 500 1000 2000 5000 10000 20000 50000 100000 inf];for i=1:length(l)j=1for Re=linspace(4*10^3,10^7,100)t=solve('lambda-(-2*log10(2.51/Re/sqrt(lambda)+0.27/l(i)))^(-2) 一段matlab代码,T=100;N=80;L=10;bval=round(rand(N,2*L)); for i=1:Ny1=0;for j=1:1:Ly1=y1+bval(i,L-j+1)*2^(j-1); bval是一个矩阵,后面加一个括号代表什么意思? 这个MATLAB中实现拉格朗日插值的程序有什么问题这个是拉格朗日插值的程序:function f=Language(x,y,x0)syms t;if(length(x)==length(y))n=length(x);elsedisp('vx!=vy');return;endf=0.0;for(i=1:n)l=y(i);for(j=1:i-1)l=l*(t-x(j))/(