답변 있음

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

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

3달 전 | 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...

multcompare for vartestn?

@Tahariet Sharon It is true that multcompare cannot work with input from vartestn. A frustration with multcompare is that it ca...

3달 전 | 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...

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

3달 전 | 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...

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

3달 전 | 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...

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

3달 전 | 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...

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

3달 전 | 0

답변 있음

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

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

3달 전 | 0

답변 있음

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

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

3달 전 | 1

| 수락됨

답변 있음

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

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

3달 전 | 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...

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

3달 전 | 0

답변 있음

Find a random position in a vector where the value is zero

% test data (includes zeros and imaginary numbers) A = [1i 4/1j 7 0 99 0 0 0 8*1j 0 0 0 8 9 0 -7 0]; % find indices of zeros...

Find a random position in a vector where the value is zero

% test data (includes zeros and imaginary numbers) A = [1i 4/1j 7 0 99 0 0 0 8*1j 0 0 0 8 9 0 -7 0]; % find indices of zeros...

3달 전 | 2

| 수락됨

답변 있음

Area under the curve ignoring axis values (Absolute area)

@Ganesh Naik Here's a new answer that uses ginput to "select" data points along the line for definiing the area of interest. Y...

Area under the curve ignoring axis values (Absolute area)

@Ganesh Naik Here's a new answer that uses ginput to "select" data points along the line for definiing the area of interest. Y...

3달 전 | 0

답변 있음

How can extract data in scatter plot??

% test data x = rand(1, 100); y = rand(1, 100); % find elements for class 1 (x is between 0 and 0.1) idx = find(x >= 0 & x...

How can extract data in scatter plot??

% test data x = rand(1, 100); y = rand(1, 100); % find elements for class 1 (x is between 0 and 0.1) idx = find(x >= 0 & x...

3달 전 | 0

| 수락됨

답변 있음

Area under the curve ignoring axis values (Absolute area)

The trapz function uses integration so the result is the area under the curve. That's not what you want. I suggest you first c...

Area under the curve ignoring axis values (Absolute area)

The trapz function uses integration so the result is the area under the curve. That's not what you want. I suggest you first c...

3달 전 | 0

| 수락됨

답변 있음

How to search closest coordinate values in a Lat Long Z data

You can do this with the pdist2 function. For latitude and longitude, usually the haversine method is used. Google it if you w...

How to search closest coordinate values in a Lat Long Z data

You can do this with the pdist2 function. For latitude and longitude, usually the haversine method is used. Google it if you w...

3달 전 | 0

답변 있음

Using writetable in a for loop to create new txt/csv files for each step

Under the assumption your code is working fine except for the filename issue, here's what I suggest. Use this to create a new f...

Using writetable in a for loop to create new txt/csv files for each step

Under the assumption your code is working fine except for the filename issue, here's what I suggest. Use this to create a new f...

3달 전 | 0

| 수락됨

질문

Problem using ranova for analysis of variance

I'm trying to use ranova to analyse data from a fairly simple experiment, but am not successful as yet. The data (60x3) are att...

3달 전 | 답변 수: 1 | 0

답변 있음

sorting a matrix of 4 rows by the fourth element and outputting of combinations that make the 4th row element

At the end of your code, add sortrows(combs,4)

sorting a matrix of 4 rows by the fourth element and outputting of combinations that make the 4th row element

At the end of your code, add sortrows(combs,4)

3달 전 | 0

답변 있음

How do I center my time-history plot at zero using code

Is the offset you are subtracting the mean of the values in the corresponding arrays? If so, just subtract the means: plot(t,x...

How do I center my time-history plot at zero using code

Is the offset you are subtracting the mean of the values in the corresponding arrays? If so, just subtract the means: plot(t,x...

3달 전 | 0

| 수락됨

답변 있음

Find values in 3D matrix with given indices

Unless I'm missing something, this is just a simple matter of finding the indices corresponding to the latitude 77:81 elements a...

Find values in 3D matrix with given indices

Unless I'm missing something, this is just a simple matter of finding the indices corresponding to the latitude 77:81 elements a...

3달 전 | 0

답변 있음

Number of registered results by the number of total experiments in a pie chart

Here's one way to make the labels you want: % test data hEQ = [5 1 1 1 1 1]; % create labels for pie chart total = sum(hEQ...

Number of registered results by the number of total experiments in a pie chart

Here's one way to make the labels you want: % test data hEQ = [5 1 1 1 1 1]; % create labels for pie chart total = sum(hEQ...

3달 전 | 1

| 수락됨

답변 있음

How can I add confidence bounds to the plot?

Seems you are working with a linear model. Also, your attached plot is quite cluttered. It will get worse if you add confide...

How can I add confidence bounds to the plot?

Seems you are working with a linear model. Also, your attached plot is quite cluttered. It will get worse if you add confide...

3달 전 | 0

| 수락됨

답변 있음

Filter table based on time and make calculation

You don't need a loop. At a high level, here's what you need to do. Read the data into MATLAB, probably into a table using the...

Filter table based on time and make calculation

You don't need a loop. At a high level, here's what you need to do. Read the data into MATLAB, probably into a table using the...

3달 전 | 1

| 수락됨

답변 있음

Arrange the matrix by replace a part to another part

Assuming your matrices are conveniently sized... A1=ones(12); A2=ones(9)*2; A3=ones(6)*3; A4=ones(3)*4; A = A1; A(4:end,...

Arrange the matrix by replace a part to another part

Assuming your matrices are conveniently sized... A1=ones(12); A2=ones(9)*2; A3=ones(6)*3; A4=ones(3)*4; A = A1; A(4:end,...

3달 전 | 0

| 수락됨

답변 있음

How to highlight a portion of time series on a plot?

Here's what I put together. I'm assuming you want 64 separate plots. % test data (timeseries) nRow = 64; % adjust as per yo...

How to highlight a portion of time series on a plot?

Here's what I put together. I'm assuming you want 64 separate plots. % test data (timeseries) nRow = 64; % adjust as per yo...

3달 전 | 0

| 수락됨

답변 있음

Easiest way to load structure array from a text file

To save the data in the structure C in a file... save('savedata.mat', 'C'); To retrieve the data as a structure C later... lo...

Easiest way to load structure array from a text file

To save the data in the structure C in a file... save('savedata.mat', 'C'); To retrieve the data as a structure C later... lo...

3달 전 | 0

답변 있음

read 2 digits in a txt file using %f

If you examine the documentation for fscanf, it states that the correct formatSpec to use when reading floating-point numbers is...

read 2 digits in a txt file using %f

If you examine the documentation for fscanf, it states that the correct formatSpec to use when reading floating-point numbers is...

3달 전 | 0

답변 있음

How to end loop after key is press

Here's an arrangement I've used with good success in the past. The loop executes indefinitely until a key is pressed. f = fi...

How to end loop after key is press

Here's an arrangement I've used with good success in the past. The loop executes indefinitely until a key is pressed. f = fi...

3달 전 | 0

| 수락됨

답변 있음

How to find the noisy signal using fourier transform for this data?

Here's what I put together. The input signal is somewhat noisy, but it is also periodic @ 34.4 Hz. f = 'https://www.mathworks...

How to find the noisy signal using fourier transform for this data?

Here's what I put together. The input signal is somewhat noisy, but it is also periodic @ 34.4 Hz. f = 'https://www.mathworks...

3달 전 | 0

답변 있음

Save number of iterations in a for loop

@Rajvi AmleThis script shows one approach to plotting the results of your simulations. The data loaded are the t and x data col...

Save number of iterations in a for loop

@Rajvi AmleThis script shows one approach to plotting the results of your simulations. The data loaded are the t and x data col...

3달 전 | 0