Community Profile

photo

Haotian Wang


Last seen: 4 mois ago Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


how to delete data with special value in an array?
there is an array with 800 values, and the mean of these can be calculated. I would like to delete the value over or less than...

4 mois ago | 1 answer | 0

1

answer

Question


why does the command window show 'Unrecognized function or variable 'beta_est'.'? how to solve it?
syms bets_est; for t=1:n-1; func=(sigma2(t+1)-sigma2(t))/(S(t+1)-S(t))*S(t)/sigma2(t)==beta_est(t)-2; end solve(eq,beta_...

4 mois ago | 1 answer | 0

1

answer

Question


Why do I get an error in this function and how to solve it?
function r=OU_SAMPLE (n,dt,beta,theta,sig,r0); t(1)=0; x(1)=theta-r0; r(1)=r0; for i=1:n-1; t(i+1)=i*dt; v=(exp(2*...

5 mois ago | 1 answer | 0

1

answer