Finding the .m file from a data file
3 次查看(过去 30 天)
显示 更早的评论
Is it possible to know which .m file created a data file from looking at the data file?
Cheers
0 个评论
采纳的回答
Walter Roberson
2013-1-13
Generally speaking, NO. In some cases, the .m file might have deliberately put its own name in the data file, but this does not happen often.
.m file names are not automatically recorded when files are created.
0 个评论
更多回答(2 个)
Azzi Abdelmalek
2013-1-13
Use the same name for your data and m file
3 个评论
Azzi Abdelmalek
2013-1-13
编辑:Azzi Abdelmalek
2013-1-13
It's difficult to guess, if we don't know what those files are generating? but I think you can guess from the size of your data for example, or others clues.
Azzi Abdelmalek
2013-1-13
编辑:Azzi Abdelmalek
2013-1-13
How many data files and m files do you have? We can for example run all your m files, and compare their results to the imported data files
Image Analyst
2013-1-13
Only if there is some clue, such as the filename is hard coded into an m-file. In that case, you can use "Find Files..." on the ribbon or pulldown menu to locate files that have that filename coded into them. Or look for some text (e.g. header lines) in the file that may have been mentioned in the file (again, use "Find files").
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!