Need help on how to CREATE a text file in matlab?
조회 수: 3 (최근 30일)
이전 댓글 표시
Do I use fopen or table function?
댓글 수: 0
답변 (2개)
Star Strider
2023년 10월 2일
‘Do I use fopen or table function?’
It depends on what you want to do. If you have a numeric array with column text headings, use table and then writetable to create the file. If youu have a matrix, the writematrix function may be more appropriate. If you have a cell array, use writecell.
댓글 수: 0
Cris LaPierre
2023년 10월 2일
It really depends on the data you are trying to write to the file. See this page: https://www.mathworks.com/help/matlab/import_export/write-to-delimited-data-files.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!