Frage


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...

fast 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

fast 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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 ...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 7 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
cubic spline regression and plot
Any help?

etwa 7 Jahre vor | 0

Frage


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 ...

etwa 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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 ...

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

etwa 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

mehr als 8 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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(...

fast 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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' ...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can we find the non common strings from multiple columns
Dear all, I want to compare the following three columns of strings (of different length) and find the entries that are NOT ...

fast 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


how to select particular rows from a matrix
Dear all, I have a panel data set(countries, years) of dimension 20000 by 200. My goal is 1) to choose those countries ...

fast 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


how do we plot a bivariate normal distribution from one side?
Dear all I plot the following bivariate distribution mu = [0 0]; Sigma = [.25 .3; .3 1]; x1 = -3:.2:3; x2 = -3:.2:3; ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Where can I run my Matlab code.
Dear all, I conduct some simulation studies but my laptop is not very fast. Could I run this code to a more powerful pc? Doe...

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Generating random draws from a specific poisson distribution
Dear all, I have the following variation of the poisson distribution P(Y=y)=((mean/vbn)^(y))*(nv^(y-1))*(exp(-mean*nv/vb...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How we generate random variates from a generalized poisson distribution?
Dear all, I want to use generate draws from the "generalized poisson distribution". Is there any function in matlab to do that...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Find maximum of a function.
Dear all, I have the following code that aims at maximixing LL_all with respect to "gidraw" which is scalar. %the dat...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


inv(A) versus /A. Which of the two is the correct one
Hi all, Let B be a n by 2 matrix and A is a 2 by 2 positive definite matrix. Which of the following two is correct ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Is it possible to run my matlab code at another workstation?
Dear all, Unfortunately, my personal laptop is not very strong and it takes days to run my Matlab code. Is it possible to run...

mehr als 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


reshaping tables and calculating combination of differences between variables
Hi all, I would like to reshape the following table Area time rates A1 2008 13 A1 2009 12 A2 2008 11 ...

mehr als 13 Jahre vor | 0 Antworten | 0

0

Antworten

Mehr laden