print a cell array as .txt in Matlab (2)

Hello all,
How can I print the element of a 1x8 cell array having elements of 1x300 double into a text file?
Thanks.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 28일

0 개 추천

M=cell2mat(A');
dlmwrite('file.txt',M)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

Mnr
2014년 3월 28일

댓글:

Mnr
2014년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by