Comments on: Changing system preferences programmatically https://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically Charting Matlab's unsupported hidden underbelly Thu, 02 May 2024 08:00:01 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-389427 Wed, 28 Sep 2016 11:09:00 +0000 https://undocumentedmatlab.com/?p=411#comment-389427 @Parvaneh – you will need to check the web for a utility that has a command-line interface that does what you want, and then you can call that utility from Matlab using the system command.

]]>
By: Parvanehhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-389426 Wed, 28 Sep 2016 10:59:10 +0000 https://undocumentedmatlab.com/?p=411#comment-389426 Hi Yair,

I was looking for a way to change the setting of the system using matlab when I saw this post.
I wonder if you can help me with it.
I’m connecting two monitors and I want to run a program from one monitor and make it run on the other one.
In the process I need to change setting from ‘screen resolution’ in the control panel.
Could this be done with matlab?

I would appreciate any help.

Thanks,
Parvaneh

]]>
By: jonhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-376658 Fri, 13 May 2016 17:06:37 +0000 https://undocumentedmatlab.com/?p=411#comment-376658 Thank you!

]]>
By: Scott Lowehttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-361086 Mon, 09 Nov 2015 04:00:10 +0000 https://undocumentedmatlab.com/?p=411#comment-361086 Hi Yair,

Thanks for this article!

I took inspiration from it to create a package to import and export color schemes in MATLAB. This definitely would not have been possible without undocumentedmatlab!

It is available on GitHub and FileExchange.

All the best,
Scott

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-334020 Mon, 13 Oct 2014 11:24:58 +0000 https://undocumentedmatlab.com/?p=411#comment-334020 To complete the picture:

>> ps = parallel.Settings
ps = 
 Parallel Settings Information
       DefaultProfile: local
 
    Profiles and Components: 
 
             Profiles: [1x1 parallel.settings.Profile]
  SchedulerComponents: [1x1 parallel.settings.schedulerComponent.Local]
    ProjectComponents: [0x0 parallel.settings.ProjectComponent]
 
>> getundoc(ps)
ans = 
            ConfigsMcrUserDataKey: 'ParallelConfigurationFile'
    ConfigurationsLastUpgradeTime: '???'
    DefaultProfileChangedListener: [1x1 event.proplistener]
          DefaultProfileListeners: [1x2 event.listener]
             DefaultProfileObject: [1x1 parallel.settings.Profile]
           DummyEnforceInitClient: 'BMPA'
                 ImportNameSuffix: '_Import'
         LastUpgradeSettingsLevel: [1x1 parallel.internal.types.SettingsLevel]
                 LocalProfileName: 'local'
            McrUserDataNameSuffix: '_mcruserdata'
                       NodeFacade: [1x1 parallel.internal.settings.SettingsNodeFacade]
                             Pool: [1x1 parallel.internal.settings.PoolSettings]
               ProfilesCollection: [1x1 parallel.internal.settings.NamedNodesCollection]
           ProfilesMcrUserDataKey: 'ParallelProfile'
      ProjectComponentsCollection: [1x1 parallel.internal.settings.NamedNodesCollection]
    SchedulerComponentsCollection: [1x1 parallel.internal.settings.TypedNodesCollection]
         UsingDeployedCollections: 0
]]>
By: Oleg Komarovhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-334015 Mon, 13 Oct 2014 10:08:39 +0000 https://undocumentedmatlab.com/?p=411#comment-334015 To change Parallel Pool settings:

ps = parallel.Settings;
ps.Pool
ans = 
  PoolSettings with properties:
                            AutoCreate: 0
                RestartOnClusterChange: 1
    RestartOnPreferredNumWorkersChange: 1
                           IdleTimeout: 30
                   PreferredNumWorkers: 12
]]>
By: Jonashttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-121747 Wed, 14 Nov 2012 22:56:16 +0000 https://undocumentedmatlab.com/?p=411#comment-121747 I just learned once more that it’s extremely helpful to programmatically check for the correct “MatfileSaveFormat” property to avoid being unable to save (or later: load) your results. Thanks for your helpful post!

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-70338 Tue, 10 Jan 2012 19:56:46 +0000 https://undocumentedmatlab.com/?p=411#comment-70338 @Chad – there is a com.mathworks.services.Prefs.load() method, but I think it will not help you much because I think that most preferences are loaded and used during startup, not dynamically.

]]>
By: Chad Gilberthttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-70330 Tue, 10 Jan 2012 19:13:48 +0000 https://undocumentedmatlab.com/?p=411#comment-70330 Hi Yair,

It seems that after doign this, I need to re-start MATLAB before the changes take effect. Do you know of any better way to make my changes “kick in”?

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-44730 Wed, 25 May 2011 20:38:17 +0000 https://undocumentedmatlab.com/?p=411#comment-44730 @Paul – I’m sure there is, but I don’t know…

]]>
By: Paulhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-44729 Wed, 25 May 2011 20:33:40 +0000 https://undocumentedmatlab.com/?p=411#comment-44729 Is there a way to programmatically update the Simulink preferences, such as the Autosave option?

Thanks,

paul

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-31967 Wed, 02 Feb 2011 16:54:03 +0000 https://undocumentedmatlab.com/?p=411#comment-31967 @Shaul – I do not know a way to customize the history file path

]]>
By: Shaulhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-31959 Wed, 02 Feb 2011 15:07:11 +0000 https://undocumentedmatlab.com/?p=411#comment-31959 Hi Yair,

I work on multiple projects at the same time and I like to have multiple matlab instances open on my computer, one for each project (I realize this might not be a particularly smart way to work). However, I would like each of them to save to a different command window history file. Is there a good safe way to do this?

Thanks! All the best,
Shaul

]]>
By: Undocumented feature() function | Undocumented Matlabhttps://undocumentedmatlab.com/blog_old/changing-system-preferences-programmatically#comment-9666 Tue, 04 May 2010 16:21:38 +0000 https://undocumentedmatlab.com/?p=411#comment-9666 […] feature(’GetPref’,prefName) – returns the system preference value for the requested preference name in the global prefs file ([prefdir,’matlab.prf’]) that is explained here. […]

]]>