Can the size limit of the old-style history.m be modified in -nodesktop mode?

48 Views Asked by At

Context: I usually work with MATLAB (R2020a) in -nodesktop or -nodisplay mode on Linux. My command history always gets saved to history.m under my prefdir() when MATLAB exits. The problem is that this file cannot grow above some 4kB or so (rounded down to an integer command count), and I really would like to have more history persist across sessions.

The newer History.xml does not suffer from this limitation, but it only seems to be written to (or read from) when running the full Desktop interface in all its glory.

I found an Answers entry (https://www.mathworks.com/matlabcentral/answers/164147) where a staff member mentions something about an "old implementation of the -nodesktop history [which] has a 4kB limit," but that post is 8 years old now. Has something changed in the meantime? Has anyone had any luck increasing the maximum history size in -nodesktop mode?

0

There are 0 best solutions below