error on first step of tutorial

214 views
Skip to first unread message

William Graves

unread,
Apr 30, 2015, 11:22:50 AM4/30/15
to mvpa-t...@googlegroups.com
Dear Princeton MVPA Toolbox Developers,

I’m trying to choose an MVPA tutorial for the grad class I’m teaching, and I was thinking of using yours. However, after following the setup instructions in the manual, I get the following error when trying to run the first line of the tutorial:

>> subj = init_subj('haxby8','tutorial_subj');
Error using datetime (line 608)
Input data must be a numeric or a cell array or char matrix containing date/time
strings.

Error in init_subj (line 40)
created = datetime(true);

I’d appreciate any help you can give.

Thanks,
Will

---
William W. Graves, Ph.D.
Assistant Professor, Department of Psychology
Rutgers, The State University of New Jersey
Smith Hall, Room 337
101 Warren Street, Newark, NJ  07102

Greg Detre

unread,
Apr 30, 2015, 11:28:00 AM4/30/15
to mvpa-t...@googlegroups.com
I don't have a running Matlab in front of me, but my hunch is that this is because the MVPA Toolbox defines a function called 'datetime' which shadows the Matlab function with the same name.

Somehow, your paths aren't correct, i.e. it's calling the built-in Matlab function rather than the MVPA function. If you run 'which datetime', you can probably corroborate this.

So you need to adjust your paths to make ours higher priority. Or rename all instances of 'datetime' in the MVPA codebase to something like 'mvpa_datetime'.

Ah, you know, I thought this sounded familiar. See:


g

P.S. The long-term solution is that we should rename our datetime function... or for Matlab to introduce better namespacing :)



--
You received this message because you are subscribed to the Google Groups "Princeton MVPA Toolbox for Matlab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvpa-toolbox...@googlegroups.com.
To post to this group, send email to mvpa-t...@googlegroups.com.
Visit this group at http://groups.google.com/group/mvpa-toolbox.
For more options, visit https://groups.google.com/d/optout.



--
-- 
Greg Detre
skype:gdetre
Reply all
Reply to author
Forward
0 new messages