Top 10% contributor
I would guess that your excel file contains cells that looks empty to the eye but, according to matlabs dataset function, is not...
Answered 3 years ago
Hi Chris I've worked quite a lot with the var_bvar library in the spatial econometrics toolbox in the past. My experience is tha...
5 years ago
Hi; Try MVNRND function in the statistics toolbox (random numbers from a multivariate normal distr). If you don't have the sta...
12 years ago
Check out the Econometrics toolbox (which is free) at It contains a copy of the GAUSS function recserar (and some other GAUSS ...
One solution is to write an objective function and then minimize this, eg minimize the euclidian distance between the cutoff poi...
4 years ago
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
2 years ago
Given the input n, return true if n is odd or false if n is even.
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
This could be done in several ways, e.g. k2=repmat(k,m,m); or you can use kronecker tensor product: k2 = kron(ones(m),k); Regard...
Hi Mike As Nasser wrote, there are more elegant ways to solve this without a loop. A one-line example would be: A = shiftdim(res...
Sorry, forgot an x. I.e. you should write: std(x(~isinf(x))) Regards
3 years ago
Use std(~isinf(x)) Regards
Join the conversation