How to migrate command history to new computer?

조회 수: 35 (최근 30일)
KAE
KAE 2020년 1월 31일
댓글: Al in St. Louis 2023년 7월 7일
I have been using Matlab 2019b on one computer, and need to install it on another. Is there any way I can migrate my command history from my old machine to my new one?

채택된 답변

KAE
KAE 2020년 1월 31일
편집: KAE 2020년 1월 31일
Here is what I figured out from this answer, in case it helps someone.
At the Matlab command prompt on old computer #1, enter a test command which will go into your history, like
rand(5)
The run the following to find the directory containing your history file, History.xml, on #1.
prefdir
On #2, run prefdir to find the directory containing History.xml on #2. If you are installing the same version, the directories will be the same.
Close matlab on #2.
Copy History.xml from #1 to the directory from #2. You will overwrite an existing History.xml file on #2.
Open Matlab on computer #2 and scroll through the history with the up arrow. You should see your test command and other older commands.
  댓글 수: 1
Al in St. Louis
Al in St. Louis 2023년 7월 7일
I believe that I've returned to this page several times when I got a new computer or needed to downgrade MATLAB because of bugs in it. It's so simple once one knows the secret. This has been the first hit on a Google search for me for quite some time.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by