How can I write strings and matrices to a .txt file in MATLAB?

后端 未结 4 1438
一个人的身影
一个人的身影 2021-02-06 03:16

I need to write data to a .txt file in MATLAB. I know how to write strings (fprintf) or matrices (dlmwrite), but I need something that can do

4条回答
  •  故里飘歌
    2021-02-06 03:53

    You've got two dlmwrite() calls, the first on an empty matrix, and the second one is missing the 'delimiter' option. What happens if you add it to the second call?

提交回复
热议问题