Extending the maximum length of MATLAB function names

I have a written MATLAB program that creates custom MATLAB functions on the fly and runs them in other instances of MATLAB with a command unix. I use this program to automate the analysis of neuroimaging fMRI (using SPM8 for MATLAB), and everything works fine. However, MATLAB overlays the length of the function name with a maximum of 63 characters ( namelengthmax). Since I need to store two different timestamps in each function name along with the name of the function it created (I have several different functions that create these new functions that are used for multi-threaded FMRI analysis), 63 characters are quite limited for file names such as

atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15.m

In this example, it atfmeans “stream analysis function” (to separate it from other files with similar file names), the first timestamp identifies the run (global timestamp, in this case July 5, 2012 at 18:01: 02), then there is a line specify_1st_levelthat identifies the function (in this case specify_1st_level.m) that created this new “analysis flow function”, and then the second timestamp identifies this particular new “analysis flow function” from other new “analytical flow functions” created to run in other flows ( and for different object in the analysis or for different tests), and that run simultaneously.

My problem is the 63 character character limit for function names.

I know that I could write my timestamps without underscore ( _) or compress them, and I could shorten my function names (like specify_1st_level.msp1st.m), and I could also separate my functions created on the fly in different subfolders also created on the fly, for example, by name. with global timestamps. Edit: Or I could create a hash of the entire function name and use the hash as the name of the function instead of a string read by a person.

" " ( , , ). , ( " ", " " ).

, namelengthmax ? MATLAB R2012a Linux. .

+5
2

: , , , , MATLAB - . -, SHA1 : SHA1 atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15.m - E545831A 0002C73B CA095F11 25FC5C51 35B82451 ( ).

[ 'atf_', sha1hashString, '.m' ], atf_E545831A0002C73BCA095F1125FC5C5135B82451.m, 44 , . 63 , , bash.

, , , atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15_E545831A0002C73BCA095F1125FC5C5135B82451.m. bash ls find ( ), MATLAB , MATLAB (, atf_E545831A0002C73BCA095F1125FC5C5135B82451.m) MATLAB.

, , : SHA1 (, SHA1- A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D, , atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15_A9993E364706816ABA3E25717850C26C9CD0D89D.m. SHA1 , SHA1 : SHA1 hash atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15_A9993E364706816ABA3E25717850C26C9CD0D89D.m A81F0083 38868103 F1A0DB69 010279D5 5DB3751E. : MATLAB , atf_A81F008338868103F1A0DB69010279D55DB3751E.m atf_2012_07_05_18_01_02_specify_1st_level_2012_07_05_18_10_15_A9993E364706816ABA3E25717850C26C9CD0D89D_A81F008338868103F1A0DB69010279D55DB3751E.m. SHA1 , , , , .., , SHA1 , .

+2

, namelength. , , . ( "HH: MM: SS", x ; "dd HH: MM: SS", x ;...).

help datenum

. , .

, .

+4

All Articles