Saving .txt file in .mat file
조회 수: 2 (최근 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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!