Then I read this Undocumented Matlab article, which described how system preferences could be accessed and changed programatically. Furthermore, some of it is locale-specific, so it’s not a great idea to keep copying the whole thing between installations. But this file has a lot of content the vast majority of which isn’t to do with colour preferences. I could have copied the MATLAB preferences file, located at fullfile ( prefdir, 'matlab.prf' )īetween the installations. This was clearly not going to work as a solution. What’s more, not only was I running MATLAB on two machines, but with dual-boot of Windows and Linux too, so there were three copies of the settings which I would have to keep manually synchronised! I could have set all the RGB values to match – but what then if I made an improvement to one of the copies? Then I’d have to remember to update the other too. I ended up manually setting up all the colours again on the new installation, but they didn’t quite match and that really was rather annoying. The problem was, there is no colour scheme manager option built into MATLAB - no option to export, nor import, a colour scheme. Since I wanted a dark-background theme, I had long-ago customised the GUI away from the defaults, and I was happy with the settings I had. Quite a while ago now, I was in the situation where I was moving from one MATLAB installation to another, and I wanted to transfer my custom-made GUI colour scheme settings from the old installation to the new one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |