cell2file

버전 1.0.0.0 (1.56 KB) 작성자: Luca Cerone
cell2files writes cells of a cellarray (both numeric and text ones) to a file
다운로드 수: 1.7K
업데이트 날짜: 2008/5/6

라이선스 보기

cell2file writes a cell array of strings, or number into a file
==This function has been obtained modifyng the file str2file.m I found in the FEX.==
Last Modified: 2008/01/09 (yyyy/mm/dd).

Syntax: cell2file(fid,cell,....) where ... is in the format PARAMETER, VALUE

Possible Parameter are: 'EndOfLine'
to choose how to end lines (ex:\r\n),
default: \n)

'Delimiter' to choose the delimiter beetween two value of the same row,
default: ';'

cell2str can write to a file both sting and numeric format.

You just have to pass the handle to the file
(so that you can choice your opening attribute) and the cellarray.

Ex:
A={'prova',[1],'prova';
[3],'txt',[4]};

fid=fopen('prova.log','a+');
cell2file(fid,A,'EndOfLine','\r\n');
fclose(fid);

인용 양식

Luca Cerone (2024). cell2file (https://www.mathworks.com/matlabcentral/fileexchange/17954-cell2file), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Low-Level File I/O에 대해 자세히 알아보기
도움

받음: str2file

Community Treasure Hunt

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

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

Bug fix:
now it doesn't write delimiter after last element and doesnt write an EndOfLine
after last Row.