MATLAB: How i can convert matrix to dat .datconvertmatrix hi, how i can convert a mat lab matrix to dat file i want to hold the lines (of matrix) and with space between the simbols Best Answer You can just use save with the -ascii option. x = randn(10,10); save mymatrix.dat x -asciiOr the forms:save('mymatrix1.dat','x','-ascii','-tabs');save('mymatrix2.dat','x','-ascii','-double','-tabs');Also, see the help for dlmwrite() Related SolutionsMATLAB: How to save matrix to .txt file Hi,use dlmwrite a = rand(64,60); dlmwrite('filename.txt',a) MATLAB: Read text file and store in .mat file fid = fopen('file1.txt');A= textscan(fid,'%s');fclose(fid);celldisp(A)save file2 A Related QuestionHow to split value in a cell
Best Answer