Answered
How do I read one column A up to a certain value and then take the average of all values of column B up to that certain value in A
This sounds like something you could use groupsummary for. The challenge is to create the grouping variable. It'd be easier to p...

2 months ago | 1

| accepted

Answered
readtable skipping some rows
I'd suggest trying to import your file interactively first to see if you can understand what is happening. You can do this using...

2 months ago | 0

Answered
Undefined operator '-' for input arguments of type 'struct'.
Here's a simple case that reproduces the error message Ts = 10; data.val = 5; Ts-data Undefined operator '-' for input a...

2 months ago | 1

Answered
Append date to time column entries where time is sporadically placed throughout the table
Identifying a "best" solution will require some creativity and some knowledge of your data. Here's one simple approach that may ...

2 months ago | 1

| accepted

Answered
Grouping of data as per date and perform different operations
I'm not sure what version of MATLAB you are using, but why not use the datetime data type? This line of code will convert the fi...

2 months ago | 0

| accepted

Answered
Find specific peaks and their positions
This is quick and dirty, but it finds 8 of the 9 peaks you specified (technically #9 is not a peak, so I leave it to you to dete...

2 months ago | 0

| accepted

Answered
How to save the iteration at every time step in this code?
Your code is already set up to capture a value at every iteration C1(i)=... There is, however, a logic flaw that I see. The ...

2 months ago | 0

| accepted

Answered
Remove ' from table
You could try using the Import Data tool to import the data interactively. This would allow you test various settings and see a ...

2 months ago | 0

Answered
Find peaks function not working
If the toolbox is on your license, you can use the Add-Ons > Get Add-Ons to install it. See here.

2 months ago | 0

Answered
Loading data from UIAxes to the appdesigner code
app.Ax1 is a handle to the figure, not a mat file that can be loaded. If you know what variables exist in the mat file, you ca...

2 months ago | 0

Answered
MATLAB grader error when running code
The likely problem is that your course is running only using base MATLAB, but it needs to have the Control System toolbox in ord...

3 months ago | 0

| accepted

Answered
Is it possible to use Symbolic Toolbox in Matlab Grader?
When running a course in MATLAB Grader, you must select which products (toolboxes) you want to grant your students access to. Se...

3 months ago | 0

Answered
I am trying to publish my matlab script, and a figure from a preceding section keeps appearing in the current section. Why is this happening?
Not sure. When I publish the code you have above in 2018b, figure 4 does not appear in this section at all. Have you installed a...

3 months ago | 0

Answered
good morning everyone can anyone answer me this question ? i have an error in the matlab code
Your code is trying to access the value in the 2nd row, 1st column of t_obs. The problem is there is no data there because t_obs...

3 months ago | 1

| accepted

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

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

3 months ago | 0

Answered
simscape multibody installation error
For help with installation, the best approach is to contact technical support.

3 months 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);...

3 months ago | 2

| accepted

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

3 months ago | 0

Answered
Reset UIAxes to show only the X and Y axis
You could try the reset function. reset(app.UIAxes)

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

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

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

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

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

4 months ago | 0

| accepted

Answered
Cross Correlation in Matlab
If you have the Signal Processing Toolbox, use xcorrr2.

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

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

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

4 months ago | 0

Load more