フィルターのクリア

How to save cell array of workspace vars into mat?

28 ビュー (過去 30 日間)
Penny Ibil
Penny Ibil 2020 年 4 月 2 日
編集済み: Stephen23 2022 年 2 月 23 日
If I have some variables in the base workspace, and a cell array of their names e.g. vars = {'A', 'B', 'C}, how can I use the save function to stores them to a mat? This doesn't work:
save('test.mat', vars)

採用された回答

Stephen23
Stephen23 2020 年 4 月 3 日
編集済み: Stephen23 2022 年 2 月 23 日

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by