フィルターのクリア

how i can convert matrix to dat

40 ビュー (過去 30 日間)
george
george 2012 年 9 月 18 日
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

採用された回答

Wayne King
Wayne King 2012 年 9 月 18 日
編集済み: Wayne King 2012 年 9 月 18 日
You can just use save with the -ascii option.
x = randn(10,10);
save mymatrix.dat x -ascii
Or the forms:
save('mymatrix1.dat','x','-ascii','-tabs');
save('mymatrix2.dat','x','-ascii','-double','-tabs');
Also, see the help for dlmwrite()

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by