saving data in .dat files

119 ビュー (過去 30 日間)
THONTI BEERAIAH
THONTI BEERAIAH 2020 年 9 月 10 日
編集済み: THONTI BEERAIAH 2020 年 9 月 12 日
In below code how to save the values of sr and sl in .dat file separately

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 10 日
There is no specific format for a .dat file. You can use writematrix(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/writematrix.html or dlmwrite(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/dlmwrite.html in older versions.
For example,
writematrix(sr, 'filename.dat') % or dlmwrite('filename.dat', sr);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by