how i can convert matrix to dat
조회 수: 40 (최근 30일)
이전 댓글 표시
hi, how i can convert a mat lab matrix to dat file
i want to hold the lines (of matrix) and with space between the simbols
댓글 수: 0
채택된 답변
Wayne King
2012년 9월 18일
편집: Wayne King
2012년 9월 18일
You can just use save with the -ascii option.
x = randn(10,10);
save mymatrix.dat x -ascii
Or the forms:
save('mymatrix1.dat','x','-ascii','-tabs');
save('mymatrix2.dat','x','-ascii','-double','-tabs');
Also, see the help for dlmwrite()
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!