Answered

How to determine ANOVA quadratic term of response model .. e.g A*A, B*B, C*C

I've found that I have to define quadratic interactions manually. Here's an example using fitlm and anova. A = [-1 1 -1 1 0 0 0...

How to determine ANOVA quadratic term of response model .. e.g A*A, B*B, C*C

I've found that I have to define quadratic interactions manually. Here's an example using fitlm and anova. A = [-1 1 -1 1 0 0 0...

1 day ago | 0

Answered

Undefined function 'isnan' for input arguments of type 'table'. Error in regress (line 66) wasnan = (isnan(y) | any(isnan(X),2));

The problem is that isnan does not support the table data type as an input. You can check which data types are supported by look...

Undefined function 'isnan' for input arguments of type 'table'. Error in regress (line 66) wasnan = (isnan(y) | any(isnan(X),2));

The problem is that isnan does not support the table data type as an input. You can check which data types are supported by look...

1 day ago | 0

Answered

simscape multibody installation error

For help with installation, the best approach is to contact technical support.

simscape multibody installation error

For help with installation, the best approach is to contact technical support.

2 days ago | 0

Answered

How to count number of letters (including some with special symbols)

Ok, so if each entry is on its own row, then I'd do the following. vals=readtable('ediD_count.xlsx','ReadVariableNames',false);...

How to count number of letters (including some with special symbols)

Ok, so if each entry is on its own row, then I'd do the following. vals=readtable('ediD_count.xlsx','ReadVariableNames',false);...

3 days ago | 1

Answered

Existing table, populate a column with string (receiving errors)

You are close, but you are trying to assign a character vector to a double variable (NaN = not a number). You can see that if yo...

Existing table, populate a column with string (receiving errors)

You are close, but you are trying to assign a character vector to a double variable (NaN = not a number). You can see that if yo...

3 days ago | 0

Answered

Reset UIAxes to show only the X and Y axis

You could try the reset function. reset(app.UIAxes)

Reset UIAxes to show only the X and Y axis

You could try the reset function. reset(app.UIAxes)

5 days ago | 0

| accepted

Answered

2-way repeated measures ANOVA

I think you could also achieve a 2-way ANOVA using the anova2 function in MATLAB. There is a good example you can follow here. ...

2-way repeated measures ANOVA

I think you could also achieve a 2-way ANOVA using the anova2 function in MATLAB. There is a good example you can follow here. ...

14 days ago | 0

Answered

Grpstats function handles with multiple columns

From what I see, the issue is that you are using a table despite wanting to use the matrix syntax. Grpstats will compute the ind...

Grpstats function handles with multiple columns

From what I see, the issue is that you are using a table despite wanting to use the matrix syntax. Grpstats will compute the ind...

16 days ago | 1

| accepted

Answered

I did not understand what the problem is ?

Not sure there is enough info for us to know either. Some observations, though. You use variable rp before you define it. That ...

I did not understand what the problem is ?

Not sure there is enough info for us to know either. Some observations, though. You use variable rp before you define it. That ...

16 days ago | 0

Answered

How do i prevent boxplots from overlapping in a for loop?

Boxplot allows you to also specify a grouping variable. I'd put all the data into a single table, and then use the following cod...

How do i prevent boxplots from overlapping in a for loop?

Boxplot allows you to also specify a grouping variable. I'd put all the data into a single table, and then use the following cod...

18 days ago | 0

| accepted

Answered

How do I log back into my free trial

Free trial of what product? Trials are added to your account, so there is no special login url. Just use your normal MathWorks ...

How do I log back into my free trial

Free trial of what product? Trials are added to your account, so there is no special login url. Just use your normal MathWorks ...

18 days ago | 0

| accepted

Answered

Cross Correlation in Matlab

If you have the Signal Processing Toolbox, use xcorrr2.

Cross Correlation in Matlab

If you have the Signal Processing Toolbox, use xcorrr2.

18 days ago | 0

Answered

Full version of Matlab

There are a couple links of interest. First, you can obtain access details for your campus-wide iicense here. Once you complete...

Full version of Matlab

There are a couple links of interest. First, you can obtain access details for your campus-wide iicense here. Once you complete...

18 days ago | 0

Answered

Duplicate x,y in table; get min/max of variables to new table

One potential solution that is simple to implement is to use groupsummary. You can have your data grouped by x and y, and have i...

Duplicate x,y in table; get min/max of variables to new table

One potential solution that is simple to implement is to use groupsummary. You can have your data grouped by x and y, and have i...

18 days ago | 0

| accepted

Answered

Solving 2nd Order DEs in MATLAB

See this example in the documentation. If you don't want to do all the rearranging yourself and have access to the Symbolic M...

Solving 2nd Order DEs in MATLAB

See this example in the documentation. If you don't want to do all the rearranging yourself and have access to the Symbolic M...

19 days ago | 0

Answered

Help plotting two events that happened on the same day

I'm not sure what it is you want to display on your final figure. First, for others, here's the data in a way you can quickly c...

Help plotting two events that happened on the same day

I'm not sure what it is you want to display on your final figure. First, for others, here's the data in a way you can quickly c...

23 days ago | 0

| accepted

Answered

How to set a colorbar using specific RGB values and limit values?

If you want specific colors at specific values, specify the contour lines. Then you can set the colormap and Caxis limits to for...

How to set a colorbar using specific RGB values and limit values?

If you want specific colors at specific values, specify the contour lines. Then you can set the colormap and Caxis limits to for...

23 days ago | 0

Answered

How to export the third dimension of a 3D single array?

So your variable has 3 dimensions? If you ran the command size(A), you should get three numbers, something like m x n x z. If t...

How to export the third dimension of a 3D single array?

So your variable has 3 dimensions? If you ran the command size(A), you should get three numbers, something like m x n x z. If t...

25 days ago | 0

| accepted

Answered

Reading an excel file and taking certain parts of the data

I'd suggest you try to use readtable instead of xlsread.

Reading an excel file and taking certain parts of the data

I'd suggest you try to use readtable instead of xlsread.

25 days ago | 0

Answered

Program that takes input from excel file and calculate distance and msd for each point!

I'd recommend you start by learning the fundamentals of MATLAB. For this, I'd suggest completing MATLAB Onramp. It's an interact...

Program that takes input from excel file and calculate distance and msd for each point!

I'd recommend you start by learning the fundamentals of MATLAB. For this, I'd suggest completing MATLAB Onramp. It's an interact...

25 days ago | 0

Answered

Boxplot for multiple categorical data sets

You could use the 'BoxStyle','filled' name,value pair when creating the boxplot. I don't like how that looks. The best I could f...

Boxplot for multiple categorical data sets

You could use the 'BoxStyle','filled' name,value pair when creating the boxplot. I don't like how that looks. The best I could f...

26 days ago | 0

| accepted

Answered

Why Does My Code Work for Fprintf, but not disp() for outputting a result from the user input

Concatenation with + only works for strings ("string"), not character arrays ('character array'). Replace your single quotes wi...

Why Does My Code Work for Fprintf, but not disp() for outputting a result from the user input

Concatenation with + only works for strings ("string"), not character arrays ('character array'). Replace your single quotes wi...

26 days ago | 0

Answered

Boxplot for multiple categorical data sets

Not sure what you are hoping it looks like in the end, but here's one way. load features.mat data1 = features{1}; data2 = f...

Boxplot for multiple categorical data sets

Not sure what you are hoping it looks like in the end, but here's one way. load features.mat data1 = features{1}; data2 = f...

27 days ago | 0

Answered

How do you convert wav file to mp3

See this post. If you can't find something in the file exchage, there are numerouse websites and 3rd party tools that also do t...

How do you convert wav file to mp3

See this post. If you can't find something in the file exchage, there are numerouse websites and 3rd party tools that also do t...

27 days ago | 0

Answered

Question regarding data grid

The uploaded file contains a single variable with size 1x71x38. If that is correct, just use the squeeze function to remove the ...

Question regarding data grid

The uploaded file contains a single variable with size 1x71x38. If that is correct, just use the squeeze function to remove the ...

29 days ago | 0

Answered

The number of lines on ASCII file should be same - error

What are you trying to do? You can read more about save in the doc. There are also examples there to help you get started. If...

The number of lines on ASCII file should be same - error

What are you trying to do? You can read more about save in the doc. There are also examples there to help you get started. If...

29 days ago | 0

| accepted

Answered

Traverse a nested for loop with strings as one index and int as another.

When working with strings, the "+" is used for concatenation. Your result, then, is strings, not variables. It depends what you...

Traverse a nested for loop with strings as one index and int as another.

When working with strings, the "+" is used for concatenation. Your result, then, is strings, not variables. It depends what you...

29 days ago | 0

Answered

How to use two different variables in few complex equation in for loop?

It's i that you changed, so you shouldn't have to do anything with j. In this case, I'd recommend first creating a variable for...

How to use two different variables in few complex equation in for loop?

It's i that you changed, so you shouldn't have to do anything with j. In this case, I'd recommend first creating a variable for...

2 months ago | 1

Answered

Why image is shifted when using ifft2

The shift is related to your hsize value in fspecial (shifted ~0.5*hsize in both X and Y). I'm not sure I can do any better exp...

Why image is shifted when using ifft2

The shift is related to your hsize value in fspecial (shifted ~0.5*hsize in both X and Y). I'm not sure I can do any better exp...

2 months ago | 0

Answered

Problem in making heatmap

Here's a sample of how I might do this. Note that I'm using some randomly generated numbers. The 5th column is integers. I defi...

Problem in making heatmap

Here's a sample of how I might do this. Note that I'm using some randomly generated numbers. The 5th column is integers. I defi...

2 months ago | 0

| accepted