I am trying to convert my data set into a chart.
조회 수: 1 (최근 30일)
이전 댓글 표시
I have my data and the script I plan to run it through but I need to translate the data from a TXT file to a spreadsheet in MATLAB. I can't figure out how.
댓글 수: 0
답변 (1개)
Star Strider
2022년 5월 31일
I am not clear on the reason for turning a text file into a spreadsheet, however readtable and writetable would be the funcitons I would use to first read it and then to write it as a spreadsheet file. Those will be certain to retain any column header information that might be in the text file. If there is no column header information, the readmatrix and writematrix functions would also work.
댓글 수: 5
Star Strider
2022년 5월 31일
I do not see how the data are created and saved to a matrix or printed to an intermediate text file from the posted code.
Image Analyst
2022년 5월 31일
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!