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

alrededor de 17 horas 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...

3 días 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); ...

3 días 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...

9 días 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...

9 días 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...

11 días 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.

11 días 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...

12 días 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...

12 días 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...

13 días 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....

15 días 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.

18 días 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...

20 días 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,...

22 días 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...

29 días 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.

30 días 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...

alrededor de 1 mes 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(...

alrededor de 1 mes 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(...

alrededor de 1 mes ago | 0

Answered

How to do feature selection by maximizing Rsquared for linear regression model ?

I believe you just need to redefine the critfun function from the one in the example: function dev = critfun(X,Y) model = fitg...

How to do feature selection by maximizing Rsquared for linear regression model ?

I believe you just need to redefine the critfun function from the one in the example: function dev = critfun(X,Y) model = fitg...

alrededor de 1 mes ago | 0

Answered

How do I optionally disable code for a missing toolbox?

All credit to Walter, but I believe you'll want to do this test: license('test','Distrib_Computing_Toolbox')

How do I optionally disable code for a missing toolbox?

All credit to Walter, but I believe you'll want to do this test: license('test','Distrib_Computing_Toolbox')

alrededor de 1 mes ago | 0

Answered

Why the script of function is always stored in two files ".m" and ".m~"?

It is an auto-saved backup file. See this page for details.

Why the script of function is always stored in two files ".m" and ".m~"?

It is an auto-saved backup file. See this page for details.

alrededor de 1 mes ago | 2

| accepted

Answered

How to plot???

I suggest you take a look at the MATLAB Plot Gallery to find something similar, and use that as a starting point. It looks like ...

How to plot???

I suggest you take a look at the MATLAB Plot Gallery to find something similar, and use that as a starting point. It looks like ...

alrededor de 2 meses ago | 0

Answered

how to calculate integral pdf ?

The probability is the integral of the PDF over a range. You can approximate that integral as a sum: pdf = @(x) 2*x; x1 = 0;...

how to calculate integral pdf ?

The probability is the integral of the PDF over a range. You can approximate that integral as a sum: pdf = @(x) 2*x; x1 = 0;...

alrededor de 2 meses ago | 0

| accepted

Answered

Error: Cannot set support to 'positive' with non-positive data.

You've checked that your data are non-negative, not they're positive. I'm guessing that you have zeros, and the positive-support...

Error: Cannot set support to 'positive' with non-positive data.

You've checked that your data are non-negative, not they're positive. I'm guessing that you have zeros, and the positive-support...

alrededor de 2 meses ago | 1

| accepted

Answered

Do I need to reference matlab in an academic paper?

The most common thing I have seen is to state the software and version used (e.g. MATLAB ver. R2018b), within the Methods sectio...

Do I need to reference matlab in an academic paper?

The most common thing I have seen is to state the software and version used (e.g. MATLAB ver. R2018b), within the Methods sectio...

alrededor de 2 meses ago | 0

Answered

Excluding date from date and time

You should be able to use the timeofday function. The resulting output will be a duration array.

Excluding date from date and time

You should be able to use the timeofday function. The resulting output will be a duration array.

alrededor de 2 meses ago | 0

Answered

Error in Mosaicing (line 44) new_img(i,k) = N(i,k-Index+1);%%to stich the 2nd image after index. Index exceeds matrix dimensions. what does this mean?

It means that when MATLAB tries to do the operation new_img(i,k) = N(i,k-Index+1); that either new_img is a smaller array tha...

Error in Mosaicing (line 44) new_img(i,k) = N(i,k-Index+1);%%to stich the 2nd image after index. Index exceeds matrix dimensions. what does this mean?

It means that when MATLAB tries to do the operation new_img(i,k) = N(i,k-Index+1); that either new_img is a smaller array tha...

alrededor de 2 meses ago | 0

Answered

the command after "if" not work after awhile

My best guess here is that you are running up against the limitations of floating point computation. For example, try putting th...

the command after "if" not work after awhile

My best guess here is that you are running up against the limitations of floating point computation. For example, try putting th...

alrededor de 2 meses ago | 2

| accepted