Saving .txt file in .mat file

2 ビュー (過去 30 日間)
Jared
Jared 2017 年 1 月 30 日
回答済み: dpb 2017 年 1 月 30 日
Let's say I have a text file Notes.txt that describes the data set located in Data.mat. Is there a way to save Notes.txt inside Data.mat?

回答 (1 件)

dpb
dpb 2017 年 1 月 30 日
Sure, you can store multiple variables in a single .mat file; just read the .txt file into a cellstr array variable and write both variables to a .mat file. See the
doc save % for examples, details on how, precisely.

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by