Question

How to make conditional calculation?

I have two vectors, contained in matrix M, each with a dimension of 1000 by 1. Each vector contains integer numbers. The values ...

6 years ago | 2 answers | 0

Question

warning about optimset and using optimoptions

Hi, I use the fminunc function and the optimset as options = optimset('GradObj','on','MaxFunEvals',1000,'MaxIter',1000,'Dis...

6 years ago | 2 answers | 0

Answered

Is MATLAB a compiler?

From the answers above, I understand that a compiler and interpreter are two very different things, and therefore it does not ma...

Is MATLAB a compiler?

From the answers above, I understand that a compiler and interpreter are two very different things, and therefore it does not ma...

6 years ago | 0

Answered

Creating dummy variables from categorical variable

I would like to ask a question here. One should always vectorise the code where possible, as I read in the literature. But in th...

Creating dummy variables from categorical variable

I would like to ask a question here. One should always vectorise the code where possible, as I read in the literature. But in th...

6 years ago | 0

Question

Is MATLAB a compiler?

I have been using MATLAB for some time but I am still not clear how MATLAB compares to some alternative software in the followin...

6 years ago | 3 answers | 1

Question

Creating dummy variables from categorical variable

Suppose there is a column vector array n containing unique but repeating values of the form 1 1 5 7 7 The ...

6 years ago | 4 answers | 0

Answered

The "unique" function returns "Index exceeds matrix dimensions" error

Thanks a lot for the quick and detailed responses.

The "unique" function returns "Index exceeds matrix dimensions" error

Thanks a lot for the quick and detailed responses.

7 years ago | 0

Question

The "unique" function returns "Index exceeds matrix dimensions" error

I have a .mat file loaded in the Workspace. I execute the command unique = unique(datafile.data(:,2)); It creates the u...

7 years ago | 2 answers | 0

Answered

Why does MATLAB fail to load my preferred language on macOS Sierra?

Is language English, region Netherlands affected by the issue? Thanks.

Why does MATLAB fail to load my preferred language on macOS Sierra?

Is language English, region Netherlands affected by the issue? Thanks.

7 years ago | 0

Question

Computation of the standard error of a FGLS coefficient estimate

Hi, I use the MATLAB code below to calculate the standard errors of the coeffficients estimated by Weighted Least Squares (WL...

8 years ago | 0 answers | 0