about anova.......
2 views (last 30 days)
Show older comments
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 Comment
Answers (0)
See Also
Categories
Find more on ANOVA in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!