saving data in .dat files

조회 수: 103 (최근 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 CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by