You need to apply detectImportOptions onto a particular filename, not to a wildcard file extension. You cannot extend detectImportOptions to tell it that from now on treat .ep files as text files. Instead, you need to detect import options for some particular file, after which you can pass the opts structure when you readtable() or readmatrix() or readcell() a particular .ep file.
File extension not recognized
20 次查看(过去 30 天)
显示 更早的评论
I'm working with a file that has the extension '.ep'. The file opens and runs like a '.txt' file outside of matlab but when I try to have my code open it inside the program it is not able to be opened.
Matlab suggested using detectImportOptions, which I tried:
opts= detectImportOptions('*.ep*','FileType','text');
But am still having the same errors thrown back at me. Any guidance on how to work around this?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!