⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex10_1.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% EX10_1.M MATLAB solution of the compound interest equation
%    y(nT)=y(nT-T) + (p/100)*y(nT-T)
%     for p = 6 percent and initial deposit y0 = $ 1000
%   y(n) represents the balance after the nth year 
clear
format bank    % Show results as currency
a=1.06;        % Calculation for 5 years at 6% interest
y0 = 1000      % Initial deposit 
for n=1:5
 y(n) = a^(n)*y0
end  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -