So I'm working on a matlab assignment to plot compound interest compounded daily with monthly contributions with yearly contribution inflation... I am just trying to get a graph of compound interest without inflation and without contributions first... This is what i have so far any help would be appreciated! Principal=5000; rate=3.25;

f(x)=Principal*(1+(rate/100)/365)^(365*x);

plot(f) I'm doing it on matlab mobile so I can't use futurevalue fxfix function.

 採用された回答

David Hill
David Hill 2022 年 10 月 16 日

0 投票

P=5000;r=3.25;
f=@(x)P*(1+r/100/365).^(365*x);
x=1:30;
plot(x,f(x))

1 件のコメント

Kevin
Kevin 2022 年 10 月 17 日
Ty so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePhysics についてさらに検索

質問済み:

2022 年 10 月 16 日

コメント済み:

2022 年 10 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by