Community Profile

photo

Jacob Wagner


Last seen: 2 dagar ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


I am trying to simulate a blackjack game
initially I wrote a function that takes as input the number of the card (in the sense of the columns labeled # in the table), an...

mer än ett år ago | 0 answers | 0

0

answers

Question


new user to matlab, need help with simulating a game of black jack
Write a Matlab function called card_value.m which takes as input the number of the card (in the sense of the columns labeled # i...

mer än ett år ago | 0 answers | 0

0

answers

Question


I want to be able to calculate and plot the total interest if the extra payment each month is changing
my code is: which calls on my file: function P = amortization(a, R, n) r = R/12; P = a*(r*((1+r)^n))/(((1+r)^n) - 1); e...

mer än ett år ago | 1 answer | 1

1

answer

Question


I am having trouble saving a value and calculating new values from it.
my code is: n = 180; a = zeros(1,n); a(1) = 20000; R = 0.06; r = R/12; z = amortization(a(1),R,n); for i = 2:n b(i) ...

mer än ett år ago | 1 answer | 0

1

answer

Question


How to save outputs from previous iterations and plot
my code is: a = 20000; R = 0.06; n = 180; r = R/12; z = amortization(a,R,n); for i = 1:180 b = a*r; %b is interest payed...

mer än ett år ago | 1 answer | 0

1

answer