Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Put cells with rowise strings togehter
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey guys, i have a cell with for example 10 rows and 1 column. In every field, a string is inserted like "1,amps,25,1". For writing this in a txt file, i now use a for loop with the fprintf command. So every line is added with a single operation. This takes too much time. Is it possible to arrange all cellstrings as one string with line break and then only write ones in a file?
Thanks Marc
댓글 수: 0
답변 (2개)
Jan
2017년 10월 20일
fprintf(fid, '%s\n', YourCell{:});
I don't think that this is much faster. Try to open the file with the 'W' flag instead of the lower case4 'w'.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!