file2str

버전 1.0.0.0 (2.13 KB) 작성자: Wolfgang Garn
converts a text file into a cell array
다운로드 수: 1.8K
업데이트 날짜: 2006/7/10

라이선스 보기

file2str Reads a text file into a cell array of strings

Input:
* file ... name of the file, i.e. file = 'test.txt'

Output:
* str ... cell array of strings
* fullPath ... path + filename + extension
* file ... filename
* directory ... path to file

Example
Write cell array to textfile.
+ str2file( {'aa','bbbb','','cc'}, 'test.txt' );
Read the text file with
+ t = file2str( 'test.txt' )

See also: str2file

인용 양식

Wolfgang Garn (2024). file2str (https://www.mathworks.com/matlabcentral/fileexchange/11667-file2str), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0