Question about store and obtain data in matlab.

조회 수: 4 (최근 30일)
C Zeng
C Zeng 2012년 6월 21일
Hello, I want to program to store a table of large size, does matlab support it and how to store the solution to a file?
When store it, I want to use those results in another project, how to obtain the data stored then?
For example, I want to store a 1000*5 matrix to a file, maybe a txt file. And I want to use the result by another file, how to obtain it? Thank you!

채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 21일
See save() and xlswrite() and dlmwrite(); see also fprintf()
  댓글 수: 2
C Zeng
C Zeng 2012년 6월 22일
Hi, Walter, this is only for save data to a file(excel, csv, or txt), but how to read the file(matrix) and obtain the corresponding data?
Walter Roberson
Walter Roberson 2012년 6월 22일
Depends what the other project is implemented in. If it is in MATLAB then consider saving to a .mat file instead of a text file. If you choose not to do that but the other project is in MATLAB, then:
To read values from a file, use load() or importdata() or uiimport() or csvread() or xlsread() or dlmread() or textscan() or the basic I/O functions such as fgetl() and fscanf().

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by