답변 있음

How to plot multiple data sets on the same graph

Use hold on and hold off to add new data to a set of existing Axes. plot(x1,y1) hold on plot(x2,y2) hold off An...

How to plot multiple data sets on the same graph

Use hold on and hold off to add new data to a set of existing Axes. plot(x1,y1) hold on plot(x2,y2) hold off An...

4년 이상 전 | 3

| 수락됨

답변 있음

How to use Gamma distribution as the kernel of Naive Bayes in MATLAB code?

If your features follow a Gamma distribution you should be fine just using the 'normal' smoothing Kernel. To provide some intuit...

How to use Gamma distribution as the kernel of Naive Bayes in MATLAB code?

If your features follow a Gamma distribution you should be fine just using the 'normal' smoothing Kernel. To provide some intuit...

약 5년 전 | 0

| 수락됨

답변 있음

Is this the correct syntax for replacing a specific element in a dependent vector?

It looks like you are trying to change any values of |w| which are greater than |wRes| to be |wRes| instead, but you are instead...

Is this the correct syntax for replacing a specific element in a dependent vector?

It looks like you are trying to change any values of |w| which are greater than |wRes| to be |wRes| instead, but you are instead...

약 5년 전 | 0

답변 있음

Does fmincon automatically normalis/scale the input vector according to the bounds?

opts = optimoptions('fmincon','Algorithm','interior-point','ScaleProblem','none');

Does fmincon automatically normalis/scale the input vector according to the bounds?

opts = optimoptions('fmincon','Algorithm','interior-point','ScaleProblem','none');

약 5년 전 | 2

| 수락됨

답변 있음

How to add text in a bar in a multiple bar plot?

This requires us to find information about the location of each of the individual bars and calculate the centers for the labels....

How to add text in a bar in a multiple bar plot?

This requires us to find information about the location of each of the individual bars and calculate the centers for the labels....

약 5년 전 | 2

답변 있음

PCA which Features are kept?

PCA is just a transformation of your feature space via centering and rotation such that your components (the resulting basis vec...

PCA which Features are kept?

PCA is just a transformation of your feature space via centering and rotation such that your components (the resulting basis vec...

약 5년 전 | 2

| 수락됨

답변 있음

ALPHA must be a scalar between 0 and 1, exclusive.

Older versions of MATLAB did have a slightly different syntax for the multcompare function which was: multcompare(stats,alp...

ALPHA must be a scalar between 0 and 1, exclusive.

Older versions of MATLAB did have a slightly different syntax for the multcompare function which was: multcompare(stats,alp...

약 5년 전 | 0

답변 있음

Given two vectors A,B - how can I create a vector v where v(n) = A(n):B(n)

The function you are looking for is called |arrayfun|. This takes a function handle and n arrays and calls the function n-times,...

Given two vectors A,B - how can I create a vector v where v(n) = A(n):B(n)

The function you are looking for is called |arrayfun|. This takes a function handle and n arrays and calls the function n-times,...

약 5년 전 | 1

| 수락됨

답변 있음

ARIMA BIC LOOP including "zero"

If you changed the loop to start at 0, you are trying to index LOGL and PQ at the index 0 which does not exist. MATLAB starts in...

ARIMA BIC LOOP including "zero"

If you changed the loop to start at 0, you are trying to index LOGL and PQ at the index 0 which does not exist. MATLAB starts in...

약 5년 전 | 0

| 수락됨

답변 있음

Laplacian clustering on Network

Assuming that you are interested in performing a spectral clustering a good place to start would be <https://en.wikipedia.org/wi...

Laplacian clustering on Network

Assuming that you are interested in performing a spectral clustering a good place to start would be <https://en.wikipedia.org/wi...

약 5년 전 | 0

답변 있음

How to pass structure data into parfor loop

You can simply extract the data that you want to pass to the workers: inpt.a1 = rand(100); inpt.a2 = rand(100); A...

How to pass structure data into parfor loop

You can simply extract the data that you want to pass to the workers: inpt.a1 = rand(100); inpt.a2 = rand(100); A...

약 5년 전 | 0

| 수락됨

답변 있음

How to gather results from a parfor loop?

The issue here is that otpt is assigned separately on each of the workers, this makes its <https://www.mathworks.com/help/distco...

How to gather results from a parfor loop?

The issue here is that otpt is assigned separately on each of the workers, this makes its <https://www.mathworks.com/help/distco...

약 5년 전 | 1

| 수락됨

답변 있음

Unable to execute GA optimisation algorithm due to Objective Function

MATLAB cannot find the file where you define your objective function evaluation. If you type: which ResourceAllocation M...

Unable to execute GA optimisation algorithm due to Objective Function

MATLAB cannot find the file where you define your objective function evaluation. If you type: which ResourceAllocation M...

약 5년 전 | 0

답변 있음

Is there any way to display a value instead of circles for points on a plot?

You can use the |text| function. x = rand(5,1); y = rand(5,1); txt = num2str((1:5)'); text(x,y,txt)

Is there any way to display a value instead of circles for points on a plot?

You can use the |text| function. x = rand(5,1); y = rand(5,1); txt = num2str((1:5)'); text(x,y,txt)

약 5년 전 | 1

답변 있음

Bug in least squares fitting

The issue is that you are trying to do an element-wise division but are not using an element-wise operator. You can see that: ...

Bug in least squares fitting

The issue is that you are trying to do an element-wise division but are not using an element-wise operator. You can see that: ...

약 5년 전 | 0

| 수락됨

답변 있음

use the variable editor in a GUI

The |open| command will open a variable in the Variable Editor: x = rand(1,10); open x

use the variable editor in a GUI

The |open| command will open a variable in the Variable Editor: x = rand(1,10); open x

약 5년 전 | 0

답변 있음

How is it possible that gamultiobj gives worse solution when the number of MaximumGenerations is raised?

Ok. So there is an additional change you make in here that was not mentioned and is affecting the output. You change the MaxStal...

How is it possible that gamultiobj gives worse solution when the number of MaximumGenerations is raised?

Ok. So there is an additional change you make in here that was not mentioned and is affecting the output. You change the MaxStal...

약 5년 전 | 0

| 수락됨

답변 있음

Neural Network: how can I get the correct output answer without using the function "sim", neural network function "sim" vs my calculation with trained network's weight and bias

There is a scaling of the data which happens for the inputs and outputs which is not being considered in the above example. All...

Neural Network: how can I get the correct output answer without using the function "sim", neural network function "sim" vs my calculation with trained network's weight and bias

There is a scaling of the data which happens for the inputs and outputs which is not being considered in the above example. All...

약 5년 전 | 4

| 수락됨

답변 있음

Fit distribution to probability plot

It looks like you are looking at comparing the Cumulative Distribution Function (CDF) with the Empirical Cumulative Distribution...

Fit distribution to probability plot

It looks like you are looking at comparing the Cumulative Distribution Function (CDF) with the Empirical Cumulative Distribution...

약 5년 전 | 1

| 수락됨

답변 있음

Calculate the number of days between two datetimes?

You can do: days(day2-day1) The issue is that the |between| function returns a |calendarDuration| and this is measured u...

Calculate the number of days between two datetimes?

You can do: days(day2-day1) The issue is that the |between| function returns a |calendarDuration| and this is measured u...

약 5년 전 | 0

| 수락됨

답변 있음

I'm trying to run a linear regression on cases that fit certain criteria, can you help?

The if statement must have a scalar logical statement next to it (either true or false) but what you have is a numeric matrix. ...

I'm trying to run a linear regression on cases that fit certain criteria, can you help?

The if statement must have a scalar logical statement next to it (either true or false) but what you have is a numeric matrix. ...

약 5년 전 | 1

| 수락됨

답변 있음

Increasing contour levels non-linearly

You can control the levels which are displayed by using the syntax: contour(Z,levels) where Z is the data and levels def...

Increasing contour levels non-linearly

You can control the levels which are displayed by using the syntax: contour(Z,levels) where Z is the data and levels def...

약 5년 전 | 0

| 수락됨

답변 있음

How can I display a complex decimal result with actual precision value?

format long will display the full numeric precision of all values at the command line.

How can I display a complex decimal result with actual precision value?

format long will display the full numeric precision of all values at the command line.

약 5년 전 | 0

답변 있음

Alternative to rsquared in robust regression using fitlm('RobustOpts','on')

Robust regression is simply going to fit your regression model using OLS and then perform an additional weighted regression to p...

Alternative to rsquared in robust regression using fitlm('RobustOpts','on')

Robust regression is simply going to fit your regression model using OLS and then perform an additional weighted regression to p...

5년 이상 전 | 0

답변 있음

What Does 20/400 Mean?

From the doc: "Location of bottom left corner of video window, specified as the comma-separated pair consisting of 'Location' an...

What Does 20/400 Mean?

From the doc: "Location of bottom left corner of video window, specified as the comma-separated pair consisting of 'Location' an...

5년 이상 전 | 1

| 수락됨

답변 있음

Optimization options in financial toolbox.

The Portfolio datatypes in the Financial Toolbox cannot use Global Optimization solvers. On the other hand you can use a Global ...

Optimization options in financial toolbox.

The Portfolio datatypes in the Financial Toolbox cannot use Global Optimization solvers. On the other hand you can use a Global ...

5년 이상 전 | 0

| 수락됨

답변 있음

Why I am getting error for performing AIC test for model orders varying in 0:3 range?

MATLAB indexing starts at 1, so when wither p or q is equal to 0 your indexing, LOGL(p,q) = logL; PQ(p,q) = p+q; will...

Why I am getting error for performing AIC test for model orders varying in 0:3 range?

MATLAB indexing starts at 1, so when wither p or q is equal to 0 your indexing, LOGL(p,q) = logL; PQ(p,q) = p+q; will...

5년 이상 전 | 1

| 수락됨

답변 있음

One step ahead forecast from an estimated model - error term

1. The arima\estimate method will return to you the data on the original scale. That is if you do: Mdl = arima(1,1,1); M...

One step ahead forecast from an estimated model - error term

1. The arima\estimate method will return to you the data on the original scale. That is if you do: Mdl = arima(1,1,1); M...

5년 이상 전 | 1

| 수락됨

답변 있음

i have defined the 3 columns as xt yt and zt. how do i run the following regression zt = β0 + β1xt + β1yt + E(epsilon)t

Assuming E(epsilon)t is not time dependent and is iid Normal with mean 0. X = [xt,yt]; Mdl = fitlm(zt,X);

i have defined the 3 columns as xt yt and zt. how do i run the following regression zt = β0 + β1xt + β1yt + E(epsilon)t

Assuming E(epsilon)t is not time dependent and is iid Normal with mean 0. X = [xt,yt]; Mdl = fitlm(zt,X);

5년 이상 전 | 0

답변 있음

Case insensitive enumeration class

Why would you want to have your enumeration be able to have any case? The only place I could consider this, is if the user ha...

Case insensitive enumeration class

Why would you want to have your enumeration be able to have any case? The only place I could consider this, is if the user ha...

5년 이상 전 | 2

| 수락됨