Convert dataset of .mat format to .csv octave/matlab -
Convert dataset of .mat format to .csv octave/matlab -
there datasets in .mat format in site: http://www.cs.nyu.edu/~roweis/data.html want alter format .csv. can tell me how alter format create .csv file.
thanks!
suppose .mat
files site available already. in command window in matlab, may write, example:
load('c:\users\yourusername\downloads\mnist_all.mat');
to load .mat
file; result should set of matrices test0
, test1
, ..., train0
, train1
... created in workspace, want saved csv files. because they're different size, need save 1 csv per variable, e.g. (also in command window):
csvwrite('c:\users\yourusername\downloads\mnist_test0.csv', test0);
repeat command each variable, , not forget alter name of output file avoid overwriting.
matlab csv
Comments
Post a Comment