Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'datetime' compatibility #6

Open
dr-parker opened this issue Nov 26, 2016 · 0 comments
Open

'datetime' compatibility #6

dr-parker opened this issue Nov 26, 2016 · 0 comments

Comments

@dr-parker
Copy link

For older versions of MATLAB, comment/modify the call to datetime('now') in the following files:
\ARobotarium.m
date = datetime('now');
this.file_path = strcat(this.file_path, '_', num2str(date.Month), '_', num2str(date.Day), '_', ... num2str(date.Year), '_', num2str(date.Hour), '_', ... num2str(date.Minute), '_', num2str(round(date.Second)), '.mat');

May also be necessary to repeat in the following file:
\robotarium-matlab-simulator-master\utilities\misc\unique_filename.m

date = datetime('now');
filePath = strcat(file_name, '_', num2str(date.Month), '_', num2str(date.Day), '_', num2str(date.Year), '_', num2str(date.Hour), '_', num2str(date.Minute), '_', num2str(date.Second), '.mat');

Updating these files to make backwards compatible does not appear to be critical, but requires some use of the date, now, clock, and/or datenum functions from older MATLAB versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant