Clear Filters
Clear Filters

saving data in .dat files

98 views (last 30 days)
THONTI BEERAIAH
THONTI BEERAIAH on 10 Sep 2020
Edited: THONTI BEERAIAH on 12 Sep 2020
In below code how to save the values of sr and sl in .dat file separately

Accepted Answer

Ameer Hamza
Ameer Hamza on 10 Sep 2020
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);

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!