Raushan
Followers: 0 Following: 0
Feeds
提问
Improper integral at 0
lambda = 0.07; mu_1 = 0.05; mu_2 = 0.12; W0 = 20000; R1 = 3000; R2 = 5000; r = 0.05; f = @(x) ((R1-r*W0)/x)^((lambda +...
10 months 前 | 1 个回答 | 0
1
个回答提问
How to simulate T by inverse transform method
function T01 = simulate_T01(lambda, mu1, n_simulations) u = rand(1, n_simulations); T01 = -1 / (lambda + mu1) * log(1 ...
10 months 前 | 1 个回答 | 0
1
个回答提问
vertical line on x axis
subplot(1,3,2) plot(a1,x1, 'black', a1, y1, 'r', a1,z1, 'b',LineWidth=5); title('Consumption level, T=10') xticks([0 1 2 3 4 ...
1 year 前 | 1 个回答 | 0
1
个回答提问
Array indices must be positive integers or logical values.
for z=(s_asterisk_tax:1:(T-1)) W_t(z+1)=0; for s=(s_asterisk_tax:1:z) W_t(z+1)=W_t(z+1)+(((L_0*g^s-Z_t_tax)*(1-tau)...
1 year 前 | 1 个回答 | 0
1
个回答提问
ratio using for loops
https://www.mathworks.com/matlabcentral/answers/2035579-ratio-using-for-loops I am still trying to solve it. for s_ast=(0:1:T)...
1 year 前 | 1 个回答 | 0
1
个回答提问
ratio using for loops
Dear All, I would like to calculate this and find out s^*. How can I calculate it using loop. I think reindexing doesn't h...
1 year 前 | 0 个回答 | 0
0
个回答提问
indexing in the nested loop
sum_y_2_s=0; sum_x_2_s=0; for s=0:1:T-1 sum_y_2_s(s)=sum_y_2_s; sum_x_2_s(s)=sum_x_2_s; for z=s:1:T-1 ...
1 year 前 | 1 个回答 | 0
1
个回答提问
nested loop shows only the result of last iteration
Dear All, T=10 for n=(0:1:(T-1)) W_t=(1+r*(1-tau)).^(-(T-n)).*C_0*epsilon.^T.*K^(1/gamma); for m=(n+1:1:T-1) ...
1 year 前 | 2 个回答 | 0