From: Doug Walters on 4 Feb 2010 17:13 Im trying to create a system that calculates interest over ten years but for some reason i keep getting an error message. I am about 99% this is the correct text for the program yet there is an error message of: Error using ==> power Matrix dimensions must agree. So my t vector is not agreeing with my interest formula or what? delete g114x05.txt; diary g0114x05.txt clear; clc; close all; echo on % % Gilat 114/05 % %Script determining account balance in a savings account r=('Enter Interest Rate (as a percent) :') P=('Enter Principal :') t=[1:10]; A=P*(1+r/100).^t; echo off; table=[t' A'] fprintf(' \n') fprintf('Time Amount \n') fprintf('(yrs) ($) \n') fprintf('------------------------ \n') fprintf('%4i %8.2f \n',table') echo off ;diary off;
From: Matt Fig on 4 Feb 2010 17:27 Perhaps the INPUT function is what you are looking for.
|
Pages: 1 Prev: GUI enumerated values Next: Why does FFT(x) must be divided by number of samples, i.e. |