Dose any one know any wrong with this function?
8 ビュー (過去 30 日間)
古いコメントを表示
Dose any one know any wrong with this function?
function [nom]=intonom(int,conv)
nom=((1+int)^(1/conv)-1)*conv;
I wanna to calculate the interest by using this calculation, but it always say wrong.
6 件のコメント
採用された回答
KL
2017 年 10 月 24 日
You have to store your code in an m-file under the same name as your function, in your case intonom.m. Once you do that, on the command line, you can type
annual_interest = 0.125;
number_of_years = 8;
result = intonom(annual_intereste,number_of_years)
and then result, according to your formula, is,
result =
0.1187
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!