MATLAB Creating and Loading .dat and .ext Data Files in MATLAB"

AI Thread Summary
The discussion centers on loading data files in MATLAB using the 'load' command. A user created a data file in Notepad but can only save it with a .ext extension instead of .dat. It is clarified that Notepad saves files as plain ASCII text, and if MATLAB accepts .dat files in text format, users can simply rename the .ext file to .dat in Windows Explorer, ignoring any warnings. For further details on supported file formats, a link to MATLAB's documentation is provided.
cpv
Messages
7
Reaction score
0
we can call data file using 'load' command. I have created data file using notepad. which I can only save it with .ext extension, not dat.

where to create .dat files? and how can I load .ext or .dat files? thanks
 
Physics news on Phys.org
Notepad will be saving as plain (ASCII) text. If the Matlab .dat format is also text, simply change the .ext (.txt?) extension to .dat in Windows Explorer. OK any warning Windows gives on the change.

More info on data files is available here:
http://www.mathworks.co.uk/help/matlab/import_export/supported-file-formats.html
 

Similar threads

Replies
4
Views
1K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
5
Views
2K
Back
Top