Question

degrees of freedom for random factors in anovan

"anovan" seems to give the same number of degrees of freedom to a factor whether it is declared as random or fixed. I though...

6 years ago | 1 answer | 0

Submitted

Compare two proportions (Chi-square)

A simple Chi-square test to compare two proportions.

6 years ago | 15 downloads |

Answered

How to compare two proportions ?

Since I could not find a build-in function for my purpose I ended up writing this little function: http://www.mathworks.com/mat...

How to compare two proportions ?

Since I could not find a build-in function for my purpose I ended up writing this little function: http://www.mathworks.com/mat...

6 years ago | 0

| accepted

Question

How to compare two proportions ?

I have a vector of x1=[0 1 1 0 1 0 ... 1 0 1] and a cell array of string x2={'Condition A' 'Condition A' 'Condition B'..... 'Con...

6 years ago | 2 answers | 0

Answered

Fitting parameter to a dataset

i would fit the two portions of the curve separately since the parameters for both portions (c and d) are independent. there...

Fitting parameter to a dataset

i would fit the two portions of the curve separately since the parameters for both portions (c and d) are independent. there...

7 years ago | 0

| accepted

Question

anovan returns NaN p-values

hello, i have this mixed-model ANOVAn set up with 5 factors, including one random factor (subjects) nested in the between-sub...

7 years ago | 1 answer | 0

Question

mnrfit : how to include interaction terms ?

Hello, I would like to compute a logistic regression on accuracy data (accuracy is 0 or 1). There are 3 predictors (X1, X...

7 years ago | 1 answer | 0

Answered

Obtaining fundamental frequency wave from a PWM signal

it seems you want to do a Fourier transform of your signal. See http://www.mathworks.fr/fr/help/matlab/ref/fft.html once you ...

Obtaining fundamental frequency wave from a PWM signal

it seems you want to do a Fourier transform of your signal. See http://www.mathworks.fr/fr/help/matlab/ref/fft.html once you ...

7 years ago | 0

| accepted

Answered

subplot of already saved figures

Here is a small bit of code that does just that for two saved figures. The figures need to be saved in the .fig format with this...

subplot of already saved figures

Here is a small bit of code that does just that for two saved figures. The figures need to be saved in the .fig format with this...

7 years ago | 10

Answered

PSNR, NPCR, UACI and how to convert gray to RGB

hi, you may try have a look there : http://www.getreuer.info/tutorials/matlabimaging good luck :-)

PSNR, NPCR, UACI and how to convert gray to RGB

hi, you may try have a look there : http://www.getreuer.info/tutorials/matlabimaging good luck :-)

7 years ago | 0

Question

how to use anovan for repeated measures and within subject factors ?

Hi, I would like to do a n-way ANOVA with two within subjects factors plus their interaction, but I don't understand how to g...

7 years ago | 0 answers | 0

Answered

Classification of many vectors of the same length

you could add one column/line at the beginning or end of each of the 6000 vectors you have that would take a value from 1 to 10 ...

Classification of many vectors of the same length

you could add one column/line at the beginning or end of each of the 6000 vectors you have that would take a value from 1 to 10 ...

7 years ago | 0

Question

ttest : independent and dependent samples

hi sorry this is a statistics question as well as a Matlab question... i have two groups of data that i want to compare us...

7 years ago | 1 answer | 0

Question

Alternative to the Statistics toolbox

Hi I went from a place that owns a license for the Statistics toolbox to a place that does not (hello, budget cuts). Now all ...

7 years ago | 2 answers | 0

Answered

Legend in for loop

if you know mydistance, you can generate legend names in the for loop, than add a legend(legend_name(1), legend_name(2)....) aft...

Legend in for loop

if you know mydistance, you can generate legend names in the for loop, than add a legend(legend_name(1), legend_name(2)....) aft...

8 years ago | 0

Answered

Draw uninterrupted lines on a plot with missing values

Thanks, the "any(isnan(.." code works like a charm for :-)

Draw uninterrupted lines on a plot with missing values

Thanks, the "any(isnan(.." code works like a charm for :-)

8 years ago | 0

Question

Draw uninterrupted lines on a plot with missing values

Hi I have data (Y) sorted into different columns and i want to plot it using Matlab. Each column represents one value of X an...

8 years ago | 2 answers | 1

Question

t-test weird degrees of freedom

Hi, I did some t-test (two-tailed) and keeps geting weird degrees of freedom. I have some pairs of vectors, all of size = ...

8 years ago | 1 answer | 0

Question

expected correlation / transitivity ?

hi, i have an "experimental correlation" between A and B (coefficient c1), and a "control correlation" between A and B' (coef...

8 years ago | 1 answer | 0

Question

anova1 within groups degree of freedom ?

Hi, I am doing an ANOVA with anova1 : anova1(D,X) X is such that there are only two groups, but the number of observations is...

8 years ago | 1 answer | 0

Question

How to make a function/script start over

Hello, How can I make a script/function start over (as if nothing had happened) if certain criteria are not met ? Thank yo...

8 years ago | 2 answers | 0

Question

Creating a customized grid on a imagesc() figure

Hi, I have a matrix of values between -1 and 1, I look it up with imagesc(). I would like to trace a customized grid over ...

8 years ago | 1 answer | 0

Question

Multicolinearity/Regression/PCA and choice of optimal model (2nd try)

Hi there I have a set of results and 4 "candidate" explanatory variables. Those variables are correlated beteween each other ...

8 years ago | 1 answer | 0

Answered

Gabor filter.

those are the parameters of the Gabor filter. see Wikipedia for the formula. but basically if you just want to display a Ga...

Gabor filter.

those are the parameters of the Gabor filter. see Wikipedia for the formula. but basically if you just want to display a Ga...

8 years ago | 0

Answered

Plotting results of three different data sets on same Plot

How about: load file1.mat data1=data; load file2.mat data2=data hold all plot(data1) plot(data2) d...

Plotting results of three different data sets on same Plot

How about: load file1.mat data1=data; load file2.mat data2=data hold all plot(data1) plot(data2) d...

8 years ago | 1

| accepted

Answered

Distribution uniformity assessment

Hi Xu Maybe you can use the Goodness of fit test against the uniform distribution see Exemple 3 here: http://www.mathwor...

Distribution uniformity assessment

Hi Xu Maybe you can use the Goodness of fit test against the uniform distribution see Exemple 3 here: http://www.mathwor...

8 years ago | 0

Question

comparing angles from two trajectories

Hello there, I am trying to compare the angles from two trajectories, (0,0) being at the center of the screen and the traject...

8 years ago | 0 answers | 0

Answered

LinearModel.stepwise Matlab R2011a

Hi cyclist :) Thank you ! that is exactly what i was looking for. Do you know if stepwisefit() automatically includes intera...

LinearModel.stepwise Matlab R2011a

Hi cyclist :) Thank you ! that is exactly what i was looking for. Do you know if stepwisefit() automatically includes intera...

8 years ago | 0

Question

LinearModel.stepwise Matlab R2011a

Hi there I am trying to perform a stepwise regression. The code i tired is the following : mdl = LinearModel.stepwise(...

8 years ago | 2 answers | 0