답변 있음
How to replace ones and zeros in a logical vector with vectors of corresponding length?
idx = [1 0 0 1 1 0 0]; % appearance of logical index a = [2 3 4]; % the values of a have to replace the ones in indx ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to convert an array of exponential numbers to am array of whole numbers?
Your question has nothing to do with "converting" numbers. Your question pertains to how numeric values are presented on the di...

4년 초과 전 | 0

| 수락됨

답변 있음
Can I save different variables inside of a for loop?
Create the desired name of the file as a string or character variable, then use that variable with the save command. For exampl...

4년 초과 전 | 0

| 수락됨

답변 있음
I want my graph to be continuous
You need to determine the point where the two functions intersect and then use that point in line 6 as the transition between th...

4년 초과 전 | 0

답변 있음
Operator '==' is not supported for operands of type 'table'.
Try this: TurbineTest1=A(strcmp(A.SAPID,u(1,1)),:);

4년 초과 전 | 2

| 수락됨

답변 있음
Create a timetable for every minute in one day
Here you go. As seen in the output from whos, there are 1441 rows in the timetable, one for each minute in the day plus the fir...

4년 초과 전 | 0

답변 있음
Plotting two Spherical helix on top of each other with one being 90 deg shifted rotated about the z axis
For a before-and-after comparision, substitute the following for the plot3 line in your code. The z-axis rotation isn't particu...

4년 초과 전 | 0

| 수락됨

답변 있음
Could anyone help me how to calculate the mean of cell array
I'm guessing either m1 or m2 below is what you are looking for. c = { [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [...

4년 초과 전 | 0

답변 있음
replace specific commas using strrep
In stages, to show the possibilities... s1 = '[[0, 145, 0], [145, 169, 1], [169, 1693, 3], [1693, 1708, 1], [1708, 2729, 3], [2...

4년 초과 전 | 0

| 수락됨

답변 있음
How to join two datetime table datasets with closest times paired?
TT1 = table2timetable(Dataset1); % 1st data set table with datetime column TT2 = table2timetable(Dataset2); % 2nd data set tab...

4년 초과 전 | 0

| 수락됨

답변 있음
Get peak values from a Surface mesh figure?
Here's a solution that does not use findpeaks (since you do not have the Signal Processing Toolbox). Below, I am using MATLAB's...

4년 초과 전 | 1

| 수락됨

답변 있음
2 x 2 mixed ANOVA
It makes no sense to use multcompare here since there are only two "sessions" and only two "groups". multcompare is used when t...

4년 초과 전 | 0

답변 있음
How to synchronize signals at different frequency in the same table
A1 = table2timetable(A); B1 = table2timetable(B); C1 = table2timetable(C); TT = synchronize(A1, B1, C1);

4년 초과 전 | 0

| 수락됨

답변 있음
How to calculate the area under the curve with data given on an excel file, and not using the function "trapz"?
f = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/702117/Steel6150Tens.csv'; T = readtable(f); T(end,:) = []...

4년 초과 전 | 1

| 수락됨

답변 있음
Combine two tables based on date time
TT1 = table2timetable(A); TT2 = table2timetable(B): TT3 = synchronize(TT1, TT2);

4년 초과 전 | 1

답변 있음
Repeated-measures ANOVA with no between-factor
You don't need a between-subjects factor to use ranova. Your design has two within-subjects factors, and that's just fine. I s...

4년 초과 전 | 2

답변 있음
Error using Plot, Vectors must be the same length
Your vector Height has six elements, with 0 as the first element. Given this, your apparent effort to plot v vs. Height is caus...

4년 초과 전 | 0

| 수락됨

답변 있음
post hoc comparisons multcompare
There are no t-values with the multiple pairwise comparisons tests performed by multcompare. These tests -- Tukey-Kramer, Schef...

4년 초과 전 | 0

답변 있음
Which pairwise hypothesis test is used on multcompare
The pairwise comparisons test used by default with multcompare is Tukey-Kramer. Using the ctype option, you can change the test...

4년 초과 전 | 0

답변 있음
Identifying significantly different pairs from multcompare output
The significantly different pairs are identified by the p-values in column 6 of the c matrix generated by multcompare. Here's an...

4년 초과 전 | 0

답변 있음
How can I test for significance between expected and observed outcomes?
Since there were only two conditions, you can use a t-test (i.e., an anova isn't needed). Here's an example using test random d...

4년 초과 전 | 1

답변 있음
multcompare for vartestn?
@Tahariet Sharon It is true that multcompare cannot work with input from vartestn. A frustration with multcompare is that it ca...

4년 초과 전 | 0

| 수락됨

답변 있음
how to find the hourly average of datetime series
TT1 = table2timetable(Data); TT2 = retime(TT1, 'hourly', 'mean'); % hourly averages TT3 = retime(TT1, 'daily', 'mean'); % dai...

4년 초과 전 | 0

| 수락됨

답변 있음
Filtering a table with datatime on dates
To remove rows corresponding to 2019-10-01, this should work: d = datetime(2019,10,01); removeLogical = isbetween(tmp.Var2, d...

4년 초과 전 | 1

답변 있음
Errors in Repeated Measures Model function fitrm
Here's an image of the data in this question: The data are in the attached file, testdata.txt. Design summary: This is a s...

4년 초과 전 | 0

답변 있음
two way repeated measures anova
Visit this question for a simple approach to doing a two-way repeated measures (aka within-subjects) anova using the ranova func...

4년 초과 전 | 1

답변 있음
How to use ranova?
You note: it seems like I need a variable that is not "within subject" to get ranova to work. Actually, that's not the case. Y...

4년 초과 전 | 2

답변 있음
Repeated measures ANOVA with two variables
Here's what I put together. None of the effects are statistically significant. See below. Were the data in the Value column ...

4년 초과 전 | 2

| 수락됨

답변 있음
How to use 'factorgap' to set larger gaps between groups of boxplot.
It is important to distinguish between a group and the members or elements of that group. The documentation on this point is poo...

4년 초과 전 | 0

| 수락됨

답변 있음
Regression/ Ordinary Least squares on a custom equation
This is probably too simple to be correct, but I'll toss it out there anyway. Admittedly, I haven't considered anything you wri...

4년 초과 전 | 0

더 보기