Because the P file's invocation priority is higher than the M file, when you call test, the TEST.P is invoked as a preference choice. Such as the current directory of MATLAB test.m file, which a=1,b=2, for the pre-resolution, and TEST.P files. Pre-resolution is only done when some programs are called to a very high number of M files, such as GUI applications, to increase the speed of subsequent calls. ![]() ![]() But also because the parse speed of MATLAB is very fast, generally do not have to do their own pre-resolution. ![]() So we have to explain beforehand, then when we use the M file, we will directly execute the corresponding resolved version, that is, the P file. Because when you first execute the M file, Matlab needs to parse it (parse) once (after the first execution of the parsed content will be put into memory for the second execution, that is, the second execution without further parsing), which virtually increased the execution time. The P file is a pre-resolved version of the corresponding m file (preparsed versions). The command can convert the M file to the corresponding Pcode file yourfile.p, which is said to be not decompile. The method of generating P file in MATLAB is very simple, it is used in command Wondow In MATLAB If your code is very important, need to encrypt, at present I have found two methods: First, generate P file two, generate an.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |