Saving .txt file in .mat file

1 vue (au cours des 30 derniers jours)
Jared
Jared le 30 Jan 2017
Réponse apportée : dpb le 30 Jan 2017
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?

Réponses (1)

dpb
dpb le 30 Jan 2017
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.

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by