Transfer history to MATLAB 2025a
Mostra commenti meno recenti
Hi everybody.
I bought a new computer and I want to transfer the MATLAB history I had on the old one. The new computer has MATLAB 2025a installed, while the old one has MATLAB 2024b.
I already transfer histories in the past and it was as simple as copy and paste the History.xml from a computer to another. However, with MATLAB 2025a, history is no longer saved in the History.xml. How can I transfer the command history from the old computer (and MATLAB 2024b) to the new one with MATLAB 2025a?
Risposta accettata
Più risposte (1)
the cyclist
il 17 Mag 2025
0 voti
I did not know the answer to your question, so I decided to as in the AI Chat Playground. Here is what it came up with.
In MATLAB 2025a, the Command History is no longer saved in a History.xml file. Instead, it is stored in the MATLAB settings. Unfortunately, this means you cannot directly transfer the command history from MATLAB 2024b to MATLAB 2025a by copying a file.
To transfer your command history, you can follow these steps:
- Export History from MATLAB 2024b:
- Open MATLAB 2024b.
- In the Command History window, select the commands you want to save.
- Right-click and choose "Export Selected" to save the commands to a .txt file.
- Import Command History into MATLAB 2025a:
- Open MATLAB 2025a. - the diary function to log your commands: matlab diary('imported_history.txt'); % Start logging % Manually re-enter or copy-paste commands from the .txt file diary off; % Stop logging
- This will create a new diary file with the commands you entered.
While this method does not directly transfer the history, it allows you to recreate your command history in the new version.
3 Commenti
Walter Roberson
il 17 Mag 2025
This would surely result in the imported commands being executed ?
the cyclist
il 18 Mag 2025
Yes. Some versions of the LLM-generated responses specifically mentioned that potential downside. I should have mentioned it!
CaG
il 28 Mag 2025
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!