Function Reference: libsvmwrite

statistics: libsvmwrite (filename, labels, data)

This function saves the labels and the corresponding instance_matrix in a file specified by filename. data must be a sparse matrix. Both labels, data must be of double type.

Source Code: libsvmwrite