how do you fix a datetime error using Princeton MVPA with Matlab R2016b
1 view (last 30 days)
Show older comments
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');
0 Comments
Answers (1)
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.
See Also
Categories
Find more on Matrix Indexing 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!