フィルターのクリア

Savign specific workspace variables in a new location

1 回表示 (過去 30 日間)
Joe Bennet
Joe Bennet 2021 年 3 月 30 日
コメント済み: Joe Bennet 2021 年 3 月 30 日
I have a very long code, with many different workspace variables, however there are only 5 relveant ones (call them, x, y, z, j & i) that I would like to save in a folder in a different file path, how does one go about this?
  4 件のコメント
Steven Lord
Steven Lord 2021 年 3 月 30 日
It's going to be difficult if not impossible to determine why it's importing the entire workspace without seeing your code.
When you call save I recommend specifying the names of the variables you're interested in saving. When you call load I recommend specifying an output argument so the loaded data becomes fields of that struct variable rather than potentially overwriting variables in the workspace that happen to have the same name as a variable in the MAT-file.
Joe Bennet
Joe Bennet 2021 年 3 月 30 日
dont worry i have fixed it, thanks anyway tho

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by