필터 지우기
필터 지우기

Saving variables in workspace to a .txt file along with variable names

조회 수: 3 (최근 30일)
Srinivas Murthy
Srinivas Murthy 2011년 5월 5일
Hey guys, Basically i want to save around 10 variables present in workspace to a text file(.txt file) so that i can access it later. Typically the first line of the text file should contain the date, time of program run, etc. Second line should contain the variable names (say 10 names) all seperated by comma(,) or a tabspace. From third line onwards, the actual variables (values) according to the variable names should be present. All the variables will be vectors(say of length 1000). Pls help me out in getting this done.. Any help will be appreciated.

답변 (1개)

Robert Cumming
Robert Cumming 2011년 5월 5일
The commands below give you some ideas:
doc fprintf
datestr(now)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by