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 5 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...
7 years ago
Hi; Try MVNRND function in the statistics toolbox (random numbers from a multivariate normal distr). If you don't have the sta...
14 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...
6 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...
4 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
5 years ago
Use std(~isinf(x)) Regards
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries