about anova.......

8 vues (au cours des 30 derniers jours)
Pang-Jung
Pang-Jung le 24 Oct 2011
my code: clear; group1 = [-0.1 0.2 -0.1 0 0.1 0 -0.2 -0.1]; group2 = [-0.3 -0.2 0.1 -0.2 -0.1 -0.1 0.1 -0.3 0.2 0]; group3= [-0.3 0 0.1 0.1 -0.1 0.3 -0.1 0.1 -0.2 -0.4 -0.2 0.3];
groups = [group1, group2,group3]; names = {'gp1','gp1','gp1','gp1','gp1','gp1','gp1','gp1','gp2','gp2','gp2','gp2','gp2','gp2','gp2','gp2','gp2','gp2','gp3','gp3','gp3''gp3','gp3','gp3','gp3','gp3','gp3''gp3','gp3','gp3'};
[p,anovatab,stats] = anova1(groups, names);
then the error is:
??? Index exceeds matrix dimensions.
Error in ==> anova1 at 105 group = group(nonan,:);
Error in ==> unblance_anova_test2 at 10 [p,anovatab,stats] = anova1(groups, names);
I do not know what happen?
someone tell me what's wrong,please
thank you very much
  1 commentaire
Wayne King
Wayne King le 24 Oct 2011
Please format your code so we can see what your names vector is.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Analysis of Variance and Covariance dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by