Saving .txt file in .mat file

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일

0 개 추천

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.

카테고리

태그

질문:

2017년 1월 30일

답변:

dpb
2017년 1월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by