Answered

Datetime with variable format

Unfortunatelly you cannot specify multiple InputFormats simultaneously. Common to Name-Value pairs is that the last instance of ...

Datetime with variable format

Unfortunatelly you cannot specify multiple InputFormats simultaneously. Common to Name-Value pairs is that the last instance of ...

meer dan 8 jaar ago | 1

Answered

MATLAB function to perform an unbalanced anova

You can do this with <http://www.mathworks.com/help/stats/anovan.html anovan>.

MATLAB function to perform an unbalanced anova

You can do this with <http://www.mathworks.com/help/stats/anovan.html anovan>.

meer dan 8 jaar ago | 1

Submitted

Currency Symbols

Retrieve currency symbols from a currency char array.

meer dan 8 jaar ago | 1 download |

Answered

How do I get the course Matlab Fundamentals?

Navigate to the Website, <https://www.mathworks.com/training-schedule/matlab-fundamentals> and you should see a Shopping Cart sy...

How do I get the course Matlab Fundamentals?

Navigate to the Website, <https://www.mathworks.com/training-schedule/matlab-fundamentals> and you should see a Shopping Cart sy...

meer dan 8 jaar ago | 0

Answered

Question about the legend command

The problem is not with the legend. You can note that if you keep adding new legend entries, you will get more markers shown: ...

Question about the legend command

The problem is not with the legend. You can note that if you keep adding new legend entries, you will get more markers shown: ...

meer dan 8 jaar ago | 1

Answered

My loop has an infinite recursion, and I'm not sure how to fix it?

You always set _y_ to be the initial guess and call _divide_and_average_ with _y_ which is the initial guess. while boundar...

My loop has an infinite recursion, and I'm not sure how to fix it?

You always set _y_ to be the initial guess and call _divide_and_average_ with _y_ which is the initial guess. while boundar...

meer dan 8 jaar ago | 0

Answered

How do I prevent a stepwise multiple linear regression to include interaction terms?

You are on the right track, it is the Upper input you are looking for: mdl1 = stepwiselm(X,y,'constant','Upper','linear'); ...

How do I prevent a stepwise multiple linear regression to include interaction terms?

You are on the right track, it is the Upper input you are looking for: mdl1 = stepwiselm(X,y,'constant','Upper','linear'); ...

meer dan 8 jaar ago | 5

| accepted

Answered

Specify a color from a relative range of data

Since your colors are really just numeric values, we can perform an interpolation on those numbers using _interp1_: b = [0 ...

Specify a color from a relative range of data

Since your colors are really just numeric values, we can perform an interpolation on those numbers using _interp1_: b = [0 ...

meer dan 8 jaar ago | 4

| accepted

Answered

add each element of one vector to each element of another vector

The essential idea here is that you want a 6x6 output containing the sums of the rows and columns (which will represent die1 and...

add each element of one vector to each element of another vector

The essential idea here is that you want a 6x6 output containing the sums of the rows and columns (which will represent die1 and...

meer dan 8 jaar ago | 2

Answered

How can I add two Gaussian Mixture models?

The quick answer is you cannot. The fitting function needs to estimate the means vectors and covariance matrices for each of the...

How can I add two Gaussian Mixture models?

The quick answer is you cannot. The fitting function needs to estimate the means vectors and covariance matrices for each of the...

meer dan 8 jaar ago | 0

Answered

How to Create array with repeating values of another array

x = [1 2 3 4 5]; y = repelem(x,2) y = 1 1 2 2 3 3 4 4 5 5

How to Create array with repeating values of another array

x = [1 2 3 4 5]; y = repelem(x,2) y = 1 1 2 2 3 3 4 4 5 5

meer dan 8 jaar ago | 3

Answered

Fix function evaluations in ga

This is controlled in the _Generations_ property of the Genetic Algorithm options. Obtain the default options: >> options ...

Fix function evaluations in ga

This is controlled in the _Generations_ property of the Genetic Algorithm options. Obtain the default options: >> options ...

meer dan 8 jaar ago | 0

Answered

Create a matrix (24,72) using 'for' loop.

You could do this with a loop: A = ones(24,72); for k = 1:72 if rem(k,3) == 0 A(:,k) = 0; end ...

Create a matrix (24,72) using 'for' loop.

You could do this with a loop: A = ones(24,72); for k = 1:72 if rem(k,3) == 0 A(:,k) = 0; end ...

meer dan 8 jaar ago | 1

Answered

Conversion of cell containing numbers into a numerical double?

A = {3;4;5}; % Cell array B = cell2mat(A) % convert to a double. B = 3 4 5

Conversion of cell containing numbers into a numerical double?

A = {3;4;5}; % Cell array B = cell2mat(A) % convert to a double. B = 3 4 5

meer dan 8 jaar ago | 1

Answered

how to replace the following code, to get the matrix

You really just need to make a sparse diagonal matrix. This can very easily be done with <http://www.mathworks.com/help/releases...

how to replace the following code, to get the matrix

You really just need to make a sparse diagonal matrix. This can very easily be done with <http://www.mathworks.com/help/releases...

meer dan 8 jaar ago | 0

| accepted

Answered

How to detect if a figure exist?

In 2014b and later you can query whether the Graphics Root objects has any children: g = groot; isempty(g.Children) % Tr...

How to detect if a figure exist?

In 2014b and later you can query whether the Graphics Root objects has any children: g = groot; isempty(g.Children) % Tr...

meer dan 8 jaar ago | 4

| accepted

Answered

Combining to two Cells

One of the issues you will face here is that what is stored in the cell array _p_ is numeric data and concatenation of numeric d...

Combining to two Cells

One of the issues you will face here is that what is stored in the cell array _p_ is numeric data and concatenation of numeric d...

meer dan 8 jaar ago | 2

| accepted

Answered

Getting scores in Naive Bayes and Support Vector Machine

The scores are only the result from using the predict method of the aforementioned classes. They are the second output referred ...

Getting scores in Naive Bayes and Support Vector Machine

The scores are only the result from using the predict method of the aforementioned classes. They are the second output referred ...

meer dan 8 jaar ago | 0

| accepted

Answered

Can I use the kstest function to check if the data have a CDF defined by myself?

Yes, if you have a function that calculates the CDF of the distribution you can calculate the CDF at your sample values and pass...

Can I use the kstest function to check if the data have a CDF defined by myself?

Yes, if you have a function that calculates the CDF of the distribution you can calculate the CDF at your sample values and pass...

meer dan 8 jaar ago | 0

| accepted

Answered

Nested / parfor loop issue

a) You must be trying to use parfor on the outer i loop, but this does not allow you to make an assignment to the jth page of Ja...

Nested / parfor loop issue

a) You must be trying to use parfor on the outer i loop, but this does not allow you to make an assignment to the jth page of Ja...

meer dan 8 jaar ago | 0

| accepted

Answered

Combining two optimization functions

Your problem is simply that fminsearch is passing only 1 input to the objective function (this is common among optimization rout...

Combining two optimization functions

Your problem is simply that fminsearch is passing only 1 input to the objective function (this is common among optimization rout...

meer dan 8 jaar ago | 0

Answered

Test significance parameters mvnrmle regression

There is really no reason to be using mvnrmle to fit this model. If you are using 2013b of later I would suggest the use of fitl...

Test significance parameters mvnrmle regression

There is really no reason to be using mvnrmle to fit this model. If you are using 2013b of later I would suggest the use of fitl...

meer dan 8 jaar ago | 0

Answered

How shall I confirm the significance of week days' Up-Downs for some stock?

Typically one would perform an Analysis of Variance ( <http://www.mathworks.com/help/stats/anova1.html anova1>) on the actual da...

How shall I confirm the significance of week days' Up-Downs for some stock?

Typically one would perform an Analysis of Variance ( <http://www.mathworks.com/help/stats/anova1.html anova1>) on the actual da...

meer dan 8 jaar ago | 0

| accepted

Answered

getting vertices of patch object after rotation .

p = patch([0 0 0.1 0.1],[0 0.2 0.2 0],'b') p.Vertices or p.XData p.YData Although I'm not sure how you ...

getting vertices of patch object after rotation .

p = patch([0 0 0.1 0.1],[0 0.2 0.2 0],'b') p.Vertices or p.XData p.YData Although I'm not sure how you ...

meer dan 8 jaar ago | 0

| accepted

Answered

how do i apply maximum likelihood estimation for a gaussian distribution?

Maximum Likelihood estimates for a normal distribution would be: mu = mean(K); sigma = std(K,1); % 1 for population stan...

how do i apply maximum likelihood estimation for a gaussian distribution?

Maximum Likelihood estimates for a normal distribution would be: mu = mean(K); sigma = std(K,1); % 1 for population stan...

meer dan 8 jaar ago | 1

Answered

How to predict output values of new data in stepwise regression?

rng('default') % Reproducibility n = 200; % 200 samples % Generate some data which is quadratic x = 4*(rand(n,1)-0.5)...

How to predict output values of new data in stepwise regression?

rng('default') % Reproducibility n = 200; % 200 samples % Generate some data which is quadratic x = 4*(rand(n,1)-0.5)...

meer dan 8 jaar ago | 1

| accepted

Answered

Maximize loglikelihood function GARCH(1,1)

Also, the Econometrics Toolbox will perform a GARCH fitting for you: mdl = garch(1,1); EstMdl = estimate(mdl,Return); ...

Maximize loglikelihood function GARCH(1,1)

Also, the Econometrics Toolbox will perform a GARCH fitting for you: mdl = garch(1,1); EstMdl = estimate(mdl,Return); ...

meer dan 8 jaar ago | 0

Answered

Confluent Hypergeometric Function of the First Kind

The _kummerU_ function is the Confluent Hypergeometric Function of the Second Kind. _hypergeom(a,b,z)_ is the Confluent Hyper...

Confluent Hypergeometric Function of the First Kind

The _kummerU_ function is the Confluent Hypergeometric Function of the Second Kind. _hypergeom(a,b,z)_ is the Confluent Hyper...

meer dan 8 jaar ago | 4

Answered

query about validation set

What is called the validation set in Neural Nets is not quite the same as it is for other machine learning algorithms. Typicall...

query about validation set

What is called the validation set in Neural Nets is not quite the same as it is for other machine learning algorithms. Typicall...

meer dan 8 jaar ago | 1

Answered

How do I plot functions involving integration?

We can not anticipate ahead of time what the size of v will be in the integral function, in fact I think this changes to approxi...

How do I plot functions involving integration?

We can not anticipate ahead of time what the size of v will be in the integral function, in fact I think this changes to approxi...

meer dan 8 jaar ago | 0

| accepted