Why do I receive a 'Can't open file' error when I have a ':' character in my file name in MATLAB 7.4 (R2007a)?
1 view (last 30 days)
Show older comments
When I execute the following commands:
logname = sprintf('Log-%s',datestr(now,31))
diary(logname)
I receive the following result:
??? Error using ==> diary
Log-2007-03-03 22:27:09: Can't open file.
I would like an error message telling me that I cannot use a : character in the file name.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The ability to have a colon ':' in a file name is not available in MATLAB.
There are no workarounds.
0 Comments
More Answers (0)
See Also
Categories
Find more on Programming Utilities 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!