Question

Is it possible to publish MATLAB code that can be executed online?

I have simple .m file. It contains a simulation that demonstrates the law of large numbers with a figure. What I want to do is t...

2 months ago | 0 answers | 0

Question

Link to MATLAB documentation

In the MATLAB documentation, the "random" function is explained here https://nl.mathworks.com/help/stats/prob.normaldistribution...

1 year ago | 1 answer | 0

Question

Creating a function that returns multiple graphs

I would like to create a function that returns as output arguments two different histograms such that in the script file either ...

2 years ago | 1 answer | 0

Question

Is there such a thing as MATLAB Markdown

Do I understand it correctly that MATLAB's Live Script is what R Markdown is for R? Otherwise how can I do what is done here htt...

2 years ago | 0 answers | 0

Question

Why is the no evaluate selection button?

Why is there no "evaluate selection" button in the Editor menu that one always has to use the mouse to evaluate a selection, or ...

2 years ago | 1 answer | 0

Question

Add surface based on two vectors in 3D plot

In the code below, my aim is to mark the span spanned by the vectors x1 and x2. So I need to add a 2D surface in the 3D plot ind...

2 years ago | 1 answer | 0

Question

Moving the labels of the z axis to the back of the 3D graph

In a 3D plot such as the one produced by scatter3, the labels of the z axis are displayed on the left of the plot. Is there a wa...

2 years ago | 1 answer | 0

Question

the isnumeric function and the NaN

I have a matrix array (A) that includes three column arrays. All columns contain integers except that one of the columns also in...

2 years ago | 1 answer | 0

Question

Is fminunc a too careful search algorithm?

I minimise a log-likelihood function in MATLAB, and it takes about five minutes. I wanted to see how much time it takes in other...

2 years ago | 0 answers | 0

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

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

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

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

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

3 years ago | 3 answers | 0

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

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

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

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

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

5 years ago | 0 answers | 0