Community Profile

photo

ektor


50 2012 이후 총 참여 횟수

담당자

ektor's 배지

  • Thankful Level 3

세부 정보 보기...

참여 게시물
보기 기준

질문


getting an error message when using hmcSampler
Dear all, I have this log-function on which I apply the hmcSampler: T=1000; g=randn(T,1); u=randn(T,1); k1=0.01; k2=0.02; ...

6달 전 | 답변 수: 0 | 0

0

답변

질문


Setting up properly the fminunc function
Dear all, I am trying to maximize this function T=1000; z=randn(T,1); u=randn(T,1); k1=0.01; k2=0.01; options=optimset('...

6달 전 | 답변 수: 1 | 0

1

답변

질문


Estimating a regression model using matlab
Dear all, I have this regression model g=randn(1000,1); error=randn(1000,1); g(2:end)=k1+ k2*(g(1:end-1)-k1) + error(2:end...

7달 전 | 답변 수: 1 | 0

1

답변

질문


An error message using fmincon
Dear all, I minimize this function. g=randn(1000,1); u=randn(1000,1); ff = @(x) sum( ( g(2:end)- x(1)- x(2)*(g(1:e...

7달 전 | 답변 수: 1 | 0

1

답변

질문


Optimizing minimization with fmincon function
Dear all, I have this function which I minimize: g=randn(1000,1); u=randn(1000,1); y=randn(1000,1); options = optimoptions(...

7달 전 | 답변 수: 1 | 0

1

답변

질문


Estimating multiple parameters from a regression
Dear all, I have this regression model fy=randn(1000,1); x1=randn(1000,1); x2=randn(1000,1); u=randn(1000,1); fy=a*x1+b*x...

7달 전 | 답변 수: 1 | 0

1

답변

질문


estimating the parameter of an equation
Dear all, I have this equation: kk=randn(1000,1); u=randn(999,1); kk(2:end)=kk(1:end-1)+u*d; and I want to estimate the ...

7달 전 | 답변 수: 1 | 0

1

답변

질문


a question on for loop statement
Dear all, I have this for loop T=1000; k=0.1; u=rand(T,1); a = zeros(T,1); a(1) =u(1)+ k*0.01; for t=2:T a(t) = u...

7달 전 | 답변 수: 1 | 0

1

답변

질문


How do I set up a particular function
Dear all, I have a function f=@(x) umax(x,u, t); The problem is that x changes at each value of t=1,...,T; that is, LL...

7달 전 | 답변 수: 0 | 0

0

답변

질문


generating a sequence of numbers
Dear all, I want to generate the following sequence: L1=P L2=a1+2*F*P L3=a2+2*F*a1+3*F^2*P L4=a3+2*F*a2+3*F^2*a1+4*F^3*...

7달 전 | 답변 수: 1 | 0

1

답변

질문


Using the global operator
I have a function below. As you can see if t==1 I create a vector kk. However, I can not use this kk in the 'else' statement...

7달 전 | 답변 수: 1 | 0

1

답변

질문


Using the operator @ and the function
Dear all, I have a function function ll=sample(x,a,b,c,d) end , where x appears in 1000 equations in various positio...

7달 전 | 답변 수: 0 | 0

0

답변

질문


constructing a time variable in matlab
Dear all, I have a matrix data= [9 30 0 9 30 0 9 30 0 9 30 0 9 30 ...

10달 전 | 답변 수: 1 | 0

1

답변

질문


changing the format of a cell matrix
Dear all, I have this cell matrix 'data', where as you can see below the element for example 8:00:06 is the hour-minute-secon...

10달 전 | 답변 수: 1 | 0

1

답변

답변 있음
cubic spline regression and plot
Any help?

10달 전 | 0

질문


cubic spline regression and plot
Dear all, I have two variables X and Y. X and Y are both vectors of dimension 8561X1 For example: X=[ 1 1 ...

10달 전 | 답변 수: 2 | 0

2

답변

질문


less than or equal and greater than of equal operations
Dear all, I have this vector DIFF=[ 0 0.0500 -0.0200 0.0100 -0.0400 0 0 ...

1년 이상 전 | 답변 수: 2 | 0

2

답변

질문


fmincon: Matrix is singular to working precision.
Dear all, I get the following message but the code seems to be working ok In fmincon (line 797) Warning: Matrix i...

2년 이하 전 | 답변 수: 0 | 0

0

답변

질문


maximizing a function with a nonlinear constraint using fmincon
Dear all, I have a function 'fun' which I want to maximize with respect to four unknowns: x(1) x(2) x(3) and x(4) under th...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


solving an equation recursively
Dear all, I want to solve the following equation m(t)=a(t)+k*m(t-1); t=2,...T for the entire path m(t), with the...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


setting up the ''options' in fmincon
Dear all, I want to maximize a function, where the univariate unknown, x, with respect to which the maximization takes place ...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


Setting up the fminunc function
Dear all I want to maximize a function, where the univariate unknown, x, with respect to which the maximization takes place is b...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


finding the maximun of a function along with hessian matrix
Dear All, I have the following function f=-1/2*log(2*pi) -.5*(x+a*b) -.5*y./exp((x+a*b) ) -1/2*log(2*pi*c)-0.5*(x-d*(1...

2년 이하 전 | 답변 수: 1 | 0

1

답변

질문


solving a nonlinear equation faster
Dear all, I want to solve this equation -0.5+ 0.5*a*exp(-x-b*c) -(x-d)/e=0 where a,b,c,d are known quantities that ch...

약 2년 전 | 답변 수: 1 | 0

1

답변

질문


Solving a nonlinear equation with time-varying parameters
Dear all, I want to solve this nonlinear equation: (a*b*exp(-c*d))*exp(-x)+2*b -2*x-b=0, where in each iteration of the ...

약 2년 전 | 답변 수: 1 | 0

1

답변

질문


Using kronecker product and elementwise multiplication
Dear all, I have the matrix der=[2 5 ;3 4] OMEGA=kron(eye(2),der); Suppose that now I have the 1 by 2 vector y ...

약 2년 전 | 답변 수: 2 | 0

2

답변

질문


Inverse wishart parameter estimates
Dear all, For beta distribution and gamma distribution there are the functions betafit and gamfit, respectively. Is there...

2년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Can I find the inverse of a sparse matrix faster?
Dear all, I have the following code T=2000; NN = speye(T) + sparse(2:T,1:(T-1),2*ones(1,T-1),T,T); u = NN\eye(...

2년 이상 전 | 답변 수: 2 | 0

2

답변

질문


How to divide a large sparse matrix
Dear all I have NN = speye(T) + sparse(2:T,1:(T-1),2*ones(1,T-1),T,T); and I want to calculate zz=(NN\( eye...

2년 이상 전 | 답변 수: 1 | 0

1

답변

질문


constructing identifiers for a large panel data
Dear all, I have a panel data of 180 countries covering the period 2000-2010. Here is a sample: list={'Australia' ...

2년 이상 전 | 답변 수: 1 | 0

1

답변

Load more