Can I change the location of the command history to a shared directory so that I can see the same history from multiple machines?

3 vues (au cours des 30 derniers jours)
I keep my MATLAB code on a NAS so I can see it from anywhere. I'd like to keep my command history on the NAS so that MATLAB would see (and update) the same history file from whatever machine I'm working from. I can find History.bak and History.xml using prefdir, but I don't see how to move them and then direct MATLAB to look in a new place

Réponse acceptée

Mudambi Srivatsa
Mudambi Srivatsa le 29 Juin 2017
The location of the command history files cannot be modified. As a workaround, you can manually copy the command history file from 'predir' to shared location, maybe in finish.m script at the end of MATLAB session. When you start a new session on a different machine, you can copy the file from shared location to 'prefdir' in a startup.m script. You need these startup and finish scripts on all systems where MATLAB is run.
  1 commentaire
Ken Davis
Ken Davis le 29 Juin 2017
This is an adequate workaround. TMW should consider making the location of history.xml be user-settable.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by