Saving .txt file in .mat file

3 visualizzazioni (ultimi 30 giorni)
Jared
Jared il 30 Gen 2017
Risposto: dpb il 30 Gen 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?

Risposte (1)

dpb
dpb il 30 Gen 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.

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by