Community Profile

photo

Snoopy


Last seen: 2 dagar ago Active since 2015

Statistics

  • Thankful Level 3
  • First Answer

View badges

Content Feed

View by

Question


MATLAB Add AWS Credentials error
I am trying to setup an AWS account within MATLAB. I get the error in the enclosed screenshot. Can anyone help?

6 månader ago | 0 answers | 0

0

answers

Question


Do I need to initiate the parallel computing toolbox for my code to run on multiple cores?
I have a function that I minimize using fmincon. I am exploring the possibility of making my code run faster. I got rid of all f...

7 månader ago | 1 answer | 0

1

answer

Question


Why Halton draws do not lead to standard normal draws?
fun.m is a function generating Halton draws and standard normal draws based on that. Copyright information: the function is a si...

7 månader ago | 0 answers | 0

0

answers

Question


Why does my objective function return complex?
I have a likelihood function that I need to minimize. I use fmincon to search for the minimum. Iterations of fmincon sometimes s...

7 månader ago | 1 answer | 0

1

answer

Question


Can this for loop be vectorized?
The for loop below runs over the third dimension (page) to fill the alpha array. Is it possible to vectorize this for loop? al...

7 månader ago | 1 answer | 0

1

answer

Question


Can MATLAB be made cheaper?
I use MATLAB intensively for econometric research but also teaching. There is an increasing pressure or recommendation from both...

8 månader ago | 2 answers | 0

2

answers

Answered
Is it possible to publish MATLAB code that can be executed online?
I managed to publish my code as html. Please see https://matlab.mathworks.com/users/mwa0000001754528/Published/html/exercisesims...

9 månader ago | 0

Question


Histogram of overlaid standard normal draws
The code below overlays histograms of two sets of standard normal draws. I also attach the graph itself. These draws are based o...

12 månader ago | 1 answer | 1

1

answer

Question


fmincon and the Objective function returned NaN warning
I minize the negative of a log-likehood function to estimate the parameters of a mixed logit regression model. I use fmincon to ...

12 månader ago | 1 answer | 0

1

answer

Question


GlobalSearch and fmincon options
I use GlobalSearch for minizing a function. I use fmincon as the solver. Does using fmincon as the solver mean that I can make u...

ungefär ett år ago | 1 answer | 0

1

answer

Question


Lower and Upper bounds in GlobalSearch
I am maximizin a log-likelihood function in an empirical econometric research to estimate a mixed logit model. For this purpose ...

ungefär ett år ago | 0 answers | 0

0

answers

Question


Generating independent Halton sequences in same session
I would like to create two Halton sequences which should be independent of each other. I use the code below. I am worried that t...

ungefär ett år ago | 0 answers | 0

0

answers

Question


10 raised to the power
When I multiply two matrices element wise (which is probably not important to my question), some numbers appear as 3.40000000000...

ungefär ett år ago | 1 answer | 0

1

answer

Question


Size of the unique elements and size of the output of accumarray
Why are the sizes of the two arrays, unique and accumarray, not the same? size(unique(MAT(:,1))) size(accumarray(MAT(:,1),MAT(...

ungefär ett år ago | 1 answer | 0

1

answer

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

ungefär 2 år ago | 2 answers | 1

2

answers

Question


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

mer än 3 år ago | 1 answer | 0

1

answer

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

nästan 4 år ago | 1 answer | 0

1

answer

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

nästan 4 år ago | 0 answers | 0

0

answers

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

nästan 4 år ago | 1 answer | 0

1

answer

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

ungefär 4 år ago | 1 answer | 0

1

answer

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

ungefär 4 år ago | 1 answer | 0

1

answer

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

ungefär 4 år ago | 1 answer | 0

1

answer

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

mer än 4 år ago | 0 answers | 0

0

answers

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

mer än 4 år ago | 2 answers | 0

2

answers

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

nästan 5 år ago | 2 answers | 0

2

answers

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

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år ago | 3 answers | 1

3

answers

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

ungefär 5 år ago | 4 answers | 0

4

answers

Answered
The "unique" function returns "Index exceeds matrix dimensions" error
Thanks a lot for the quick and detailed responses.

mer än 5 år ago | 0

Load more