Answered

What is the difference between rand and copularand

It's a little difficult to know where to start with an explanation? Do you know what a copula is, and why it is used? If not, ma...

What is the difference between rand and copularand

It's a little difficult to know where to start with an explanation? Do you know what a copula is, and why it is used? If not, ma...

1 dag ago | 0

| accepted

Answered

Problem with Power Regression

polyfit(...,2) is fitting a constant, linear, and quadratic term. Notice that the output vector p has three elements. You want t...

Problem with Power Regression

polyfit(...,2) is fitting a constant, linear, and quadratic term. Notice that the output vector p has three elements. You want t...

2 dagen ago | 0

| accepted

Answered

Error SIGMA must be a symmetric positive semi-definite matrix

This issue will arise when you get pairwise asset correlations that are inconsistent. (The zeros are not necessarily the problem...

Error SIGMA must be a symmetric positive semi-definite matrix

This issue will arise when you get pairwise asset correlations that are inconsistent. (The zeros are not necessarily the problem...

4 dagen ago | 0

Answered

K-Means: Indices of C in idx

I'm not certain I fully understand your question, but I'll make a guess. The centroid is not (necessarily) one of the points of...

K-Means: Indices of C in idx

I'm not certain I fully understand your question, but I'll make a guess. The centroid is not (necessarily) one of the points of...

5 dagen ago | 1

| accepted

Answered

Change the format of x axis in a Kernel density plot.

Instead of the plot command, use semilogx.

Change the format of x axis in a Kernel density plot.

Instead of the plot command, use semilogx.

5 dagen ago | 1

| accepted

Answered

Array indices must be positive integers or logical values.

You need to explicitly put in the multiplication sign: out(1)=(-k1*G2+k2*(G4-G2))/m1; and similarly in the assignment to out(3...

Array indices must be positive integers or logical values.

You need to explicitly put in the multiplication sign: out(1)=(-k1*G2+k2*(G4-G2))/m1; and similarly in the assignment to out(3...

5 dagen ago | 1

Answered

Plot bar chart with log scale on y axis

There are some good thoughts on how to handle this problem in response to this question. In particular, the accepted answer by M...

Plot bar chart with log scale on y axis

There are some good thoughts on how to handle this problem in response to this question. In particular, the accepted answer by M...

5 dagen ago | 0

Answered

How do I obtain standarized coefficients when applying a stepwise multilinear regression?

I'm not sure I would necessarily expect coefficients to be in that range, even for normalized variables. Can you quote a referen...

How do I obtain standarized coefficients when applying a stepwise multilinear regression?

I'm not sure I would necessarily expect coefficients to be in that range, even for normalized variables. Can you quote a referen...

6 dagen ago | 0

| accepted

Answered

Generating musical note from given frequency

There is of course a lot that goes into what a note sounds like, beyond just the frequency. I expect MATLAB is generating the c...

Generating musical note from given frequency

There is of course a lot that goes into what a note sounds like, beyond just the frequency. I expect MATLAB is generating the c...

6 dagen ago | 0

Answered

problem using hold on in a for loop

Your variable N is a single value -- a scalar. (It is an array of length 1.) You then define n to be the length of that array. S...

problem using hold on in a for loop

Your variable N is a single value -- a scalar. (It is an array of length 1.) You then define n to be the length of that array. S...

6 dagen ago | 0

Answered

add a cell array in double for one more column in uitable

Convert the numeric array into a cell array before concatenating. Then use the cell array as the input to the uitable command. ...

add a cell array in double for one more column in uitable

Convert the numeric array into a cell array before concatenating. Then use the cell array as the input to the uitable command. ...

7 dagen ago | 0

| accepted

Answered

Wrong axis value in correlation plot

I don't have the Econometrics Toolbox, so I can't confirm myself. But if that is really the only thing you did, then I think thi...

Wrong axis value in correlation plot

I don't have the Econometrics Toolbox, so I can't confirm myself. But if that is really the only thing you did, then I think thi...

9 dagen ago | 0

| accepted

Answered

create table from matrix and cell variables

I'm not certain what you want, but I think this is it. % Make up some original inputs A = rand(18,257,176); B = cell(176,1); ...

create table from matrix and cell variables

I'm not certain what you want, but I think this is it. % Make up some original inputs A = rand(18,257,176); B = cell(176,1); ...

9 dagen ago | 1

| accepted

Answered

How to apply function eig to an array of matrices?

cellfun(@eig,A,'UniformOutput',false) or something like this, will be at the heart of your solution. You might need to read the...

How to apply function eig to an array of matrices?

cellfun(@eig,A,'UniformOutput',false) or something like this, will be at the heart of your solution. You might need to read the...

15 dagen ago | 0

Answered

Running Matlab, accents are replaced by question marks in the outputs

Your code renders correctly for me in R2019a, on a mac running mojave. There are some ideas in response to this question that c...

Running Matlab, accents are replaced by question marks in the outputs

Your code renders correctly for me in R2019a, on a mac running mojave. There are some ideas in response to this question that c...

15 dagen ago | 1

Answered

How does mdl.Rsquared.Ordinary and mddl.Rsquared.Adjusted work?

R-squared and adjusted R-squared are invariant to scaling and mean-centering of the input data. So, you don't need to do it. But...

How does mdl.Rsquared.Ordinary and mddl.Rsquared.Adjusted work?

R-squared and adjusted R-squared are invariant to scaling and mean-centering of the input data. So, you don't need to do it. But...

17 dagen ago | 0

| accepted

Answered

How to copy first column, and replace other columns with this first column values in same array in MATLAB? (array size can vary)

If your original array is A, then I think A(mod(A,10)==1)=1; will do what you want.

How to copy first column, and replace other columns with this first column values in same array in MATLAB? (array size can vary)

If your original array is A, then I think A(mod(A,10)==1)=1; will do what you want.

17 dagen ago | 0

Answered

For Loop not working. Not iterating through my data.

I did not try running your code, but I'm pretty confident that this line if time5_00(x+1)> timeV_5_00(y) >time5_00(x) is not d...

For Loop not working. Not iterating through my data.

I did not try running your code, but I'm pretty confident that this line if time5_00(x+1)> timeV_5_00(y) >time5_00(x) is not d...

17 dagen ago | 0

Answered

fitting with my function

If you have the Statistics and Machine Learning Toolbox, then fitnlm is probably your best option for this sort of non-linear fi...

fitting with my function

If you have the Statistics and Machine Learning Toolbox, then fitnlm is probably your best option for this sort of non-linear fi...

18 dagen ago | 0

Answered

How to modify Box Plot outliers marker size?? Can I insert a legend?

I think the following should work for you: figure boxplot(randn(1000,2)) h = findobj(gcf,'tag','Outliers') set(ho,'MarkerSiz...

How to modify Box Plot outliers marker size?? Can I insert a legend?

I think the following should work for you: figure boxplot(randn(1000,2)) h = findobj(gcf,'tag','Outliers') set(ho,'MarkerSiz...

19 dagen ago | 0

| accepted

Answered

Fit data using a function

The equation you have written there has no parameters. It has only constants and the data. But if each of those constants (e.g....

Fit data using a function

The equation you have written there has no parameters. It has only constants and the data. But if each of those constants (e.g....

21 dagen ago | 0

| accepted

Answered

Multiplayer update when?

You can use MATLAB Drive to store files in the cloud, and share with others.

Multiplayer update when?

You can use MATLAB Drive to store files in the cloud, and share with others.

24 dagen ago | 1

| accepted

Answered

PCA scaling and centering documentation wrong?

Answering a gazillion years after-the-fact, because I just turned this up in my own search. X = [1.0000 -3.0000 -1.0000; 2.0000...

PCA scaling and centering documentation wrong?

Answering a gazillion years after-the-fact, because I just turned this up in my own search. X = [1.0000 -3.0000 -1.0000; 2.0000...

25 dagen ago | 0

Answered

Finding maximum value and corresponding variable

P = rand(10,40,10); % Some pretend data [P_max,linear_index_max] = max(P(:)); % Find max and index, for linearized matrix [mc,...

Finding maximum value and corresponding variable

P = rand(10,40,10); % Some pretend data [P_max,linear_index_max] = max(P(:)); % Find max and index, for linearized matrix [mc,...

28 dagen ago | 0

| accepted

Answered

Plot and interp using Spline method

It's presumably because you have not chosen your query points to be very close together. Do you get something closer to what you...

Plot and interp using Spline method

It's presumably because you have not chosen your query points to be very close together. Do you get something closer to what you...

ongeveer een maand ago | 0

Answered

how can i get activation key

If you are looking to purchase MATLAB products, you could start at the MATLAB store.

how can i get activation key

If you are looking to purchase MATLAB products, you could start at the MATLAB store.

ongeveer een maand ago | 0

Answered

How can I add an expiration date and time to my script or P-code file?

One way that you could do it would be to put a line in your *.m file code that checks the date [using, for example, the now() fu...

How can I add an expiration date and time to my script or P-code file?

One way that you could do it would be to put a line in your *.m file code that checks the date [using, for example, the now() fu...

ongeveer een maand ago | 0

Answered

list names in an array

I'm pretty sure there is a better, simpler way to do this, but I believe this does what you want: s = dir; fileList = cellfun(...

list names in an array

I'm pretty sure there is a better, simpler way to do this, but I believe this does what you want: s = dir; fileList = cellfun(...

ongeveer een maand ago | 1

Answered

I need some help with arrayfun

I believe that groupsummary is for data stored in tables only. You can do what you want with [sortedResponses,~,idx] = unique(...

I need some help with arrayfun

I believe that groupsummary is for data stored in tables only. You can do what you want with [sortedResponses,~,idx] = unique(...

ongeveer een maand ago | 0