Transfer history to MATLAB 2025a
Show older comments
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?
Accepted Answer
More Answers (1)
the cyclist
on 17 May 2025
0 votes
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 Comments
Walter Roberson
on 17 May 2025
This would surely result in the imported commands being executed ?
the cyclist
on 18 May 2025
Yes. Some versions of the LLM-generated responses specifically mentioned that potential downside. I should have mentioned it!
CaG
on 28 May 2025
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!