How can i save my matlab shortcuts?

how can i save my Matlab shortcuts for use with another Matlab.

4 comentarios

Jan
Jan el 22 de Jul. de 2012
"Don't tell me (copy past)"?
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2012
yes
Jan
Jan el 22 de Jul. de 2012
Should this mean something like: "Please do not suggest me to use copy&paste, because this does not satisfy my needs for the following reasons: XYZ"?
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2012
Exactly M Simon. just to avoid wasting your time

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 22 de Jul. de 2012
Editada: Image Analyst el 16 de Sept. de 2012

6 votos

R2012a and earlier instructions: Type prefdir on the command line. Go to the folder it gives. Then copy the file shortcuts.xml from the prefsdir of the source computer to the prefsdir folder of the target computer.
[EDIT - UPDATE FOR COPYING EARLIER SHORTCUTS TO VERSION R2012b]
Apparently the new shortcuts XML file MUST be called shortcuts_2.xml.
  1. Type prefsdir on the command line, then in Windows Explorer (or similar for your other operating system), go to that folder.
  2. Copy your shortcuts.xml file from your old MATLAB version "prefsdir" folder to the new "prefsdir" folder.
  3. Rename the existing, new shortcuts_2.xml to shortcuts_2_original.xml.
  4. Rename your shortcuts.xml shortcuts_2.xml.
  5. Restart MATLAB R2012b and all your old short cuts will be there.

7 comentarios

Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2012
thanks
Jan
Jan el 22 de Jul. de 2012
So copying this file and pasting it to the other computer or Matlab installation does not collide with "Don't tell me (copy past)"? Strange.
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2012
Simon, it's just one file, i think u understood what i was meaning. ok i will never add such a comment (don't tell me copy past)!
Image Analyst
Image Analyst el 23 de Jul. de 2012
Editada: Image Analyst el 23 de Jul. de 2012
I didn't understand it either, so I just ignored it since it didn't seem to affect the answer to the main question. Maybe he means that he didn't want to edit the shortcut on computer #1, copy the text for all the shortcuts to a text file, bring that text file to computer #2 and then create shortcuts on computer #2 by copying and pasting from that text file into each shortcut. After thinking about it, I think this is probably what he meant. But I'm glad you got a working solution.
Star Strider
Star Strider el 23 de Jul. de 2012
I wonder if the same idea would work between versions? If possible, saving the current one before the install and copying it the appropriate new directory afterwards would be nice. Of course it would even be better if each new MATLAB install mapped the previous set to the new version, as the Editor tabs did with 2012a. That was nice.
Image Analyst
Image Analyst el 23 de Jul. de 2012
I have done it between versions and it works. I copied R2012a shortcuts from my work computer to my R2011b version on my home computer.
Star Strider
Star Strider el 23 de Jul. de 2012
Great! Thank you!

Iniciar sesión para comentar.

Más respuestas (1)

Daniel Shub
Daniel Shub el 23 de Jul. de 2012

0 votos

All my shortcuts are 1 (sometimes 2) lines which point at script m files. These m files reside in a single directory which is on my MATLAB path. I can then play around with copying the shortcut information from prefdir, or just recreate them as I go.

Categorías

Productos

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by