How can I save a very large MATLAB sparse matrix to a text file?

前端 未结 8 968
孤城傲影
孤城傲影 2021-02-01 06:53

I have a 30000x14000 sparse matrix in MATLAB (version 7), which I need to use in another program. Calling save won\'t write this as ASCII (not supported). Calling full()

8条回答
  •  没有蜡笔的小新
    2021-02-01 07:33

    dlmwrite - Write matrix to ASCII-delimited file Syntax

    dlmwrite(filename, M)

    dlmwrite(filename, M, 'D')

    dlmwrite(filename, M, 'D', R, C)

    dlmwrite(filename, M, 'attrib1', value1, 'attrib2', value2, ...)

    dlmwrite(filename, M, '-append')

    dlmwrite(filename, M, '-append', attribute-value list)

提交回复
热议问题