Feeds
提问
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...
3 years 前 | 0 个回答 | 0
0
个回答提问
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...
3 years 前 | 0 个回答 | 0
0
个回答提问
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...
4 years 前 | 1 个回答 | 1
1
个回答提问
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) ...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
