AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
Jen
August 04, 2008 05:23PM

Hi,

I'm trying to run GroupAna in Matlab 7.5 (R2007b) with a the afni_matlab tar file I downloaded yesterday but I get an error. I've previously successfully run the script with MATLAB R2007a and an older version of the tar file. So I tried using inputs from a text file I had save (which had worked) but still got the same error:

??? Undefined function or method 'grp2idx' for input arguments of type 'cell'.

Error in ==> PreProc at 66
[gij,gnj] = grp2idx(gj); % Create index vector from a grouping variable: gij is a vector

Error in ==> GroupAna at 1631
[err, Qd, s, termname, nterms, sindices, dfbothSS, modw, modwo, tnames, dfterm, dfe, Contr] =
PreProc(ntot, NF, group, varnames, FL, Contr, cov, unbalanced);

The function grp2idx doesn't seem to exist anywhere obvious ... Is that the problem or is it something I typed in?

Thanks,
Jen

Subject Author Posted

GroupAna Error in Matlab 7.5

Jen August 04, 2008 05:23PM

Re: GroupAna Error in Matlab 7.5

Gang Chen August 04, 2008 05:39PM