how do you fix a datetime error using Princeton MVPA with Matlab R2016b

1 view (last 30 days)
Here's the error I keep getting. Help
>> [subj results] = tutorial_easy() Error using datetime (line 617) Input data must be a numeric or a date/time string or a cell array or char matrix containing date/time character vectors.
Error in init_subj (line 40) created = datetime(true);
Error in tutorial_easy (line 37) subj = init_subj('haxby8','tutorial_subj');

Answers (1)

Steven Lord
Steven Lord on 13 Jan 2017
You can't create a datetime variable using the scalar logical value true as input. You need to call datetime with a valid input or set of inputs as listed in the Syntax and Description sections on the documentation page for the datetime function.
What exactly did you intend for datetime(true) to do? If we know that we may be able to suggest the right way to perform that task.
  1 Comment
Ariel Niforatos
Ariel Niforatos on 14 Jan 2017
Thanks for the reply! I think I need to rename the MVPA version of 'datetime'. How do I do that globally throughout MVPA so that I can use Matlab and MVPA to analyze fMRI data?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!