Retrieve commands from .mat file

5 ビュー (過去 30 日間)
Joel George Thomas
Joel George Thomas 2019 年 7 月 23 日
編集済み: Stephen23 2019 年 7 月 23 日
I saved my command window with all the commands to a .mat file. When I reopen the .mat file, I was able to load the .mat but couldn't retrieve my commands in the command window.
Is there any way to retrieve these commands?
  3 件のコメント
Stephen23
Stephen23 2019 年 7 月 23 日
編集済み: Stephen23 2019 年 7 月 23 日
.mat files are designed to contain variable data, not commands.
You can retrieve commands using the command history, or the diary function:
Walter Roberson
Walter Roberson 2019 年 7 月 23 日
It is technically possible to retrieve the command history and store it in a variable that you then store in a file. I doubt that has been done, but it could have been done.

サインインしてコメントする。

回答 (1 件)

Alex Mcaulley
Alex Mcaulley 2019 年 7 月 23 日
編集済み: Alex Mcaulley 2019 年 7 月 23 日
.mat files only store variables from the workspace.
To retrieve command history:

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by