![]() Compile your source code files using the MATLAB Compiler to produce a standalone application. This requires some knowledge about the source code.įind/make a tool for decoding p-files and fix the resulting source code yourself. Decrypt Matlab P File MATLAB does not support converting live scripts to P-code files. If this code relies on some external (and open source) function to get (or use) the path, you can modify its behavior to output the string you want. When you discover it, change the value to the correct path and detach/disable the debugger. Obtain an external debugger, attach to the MATLAB process, run the p-file and scan the memory for the contents of filepath. (Essentially the same idea as before, but on newer MATLAB versions, VERY DIFFICULT to pull off) ![]() ![]() Step until you see filepath appear in the workspace (having the wrong path in it), then simply edit the value to the correct path, and hope for the best. Install an older MATLAB version ( R2007b <= ver < R2015b, I think) which allowed debugging (stepping into) p-files within MATLAB, then, assuming that there is some line in the original source code that does filepath = There are several things you can do (none of which are particularly easy listed here in increasing order of how nasty I think they are):Ĭontact the author of the code and ask them to fix it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |