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

  • Context: MATLAB 
  • Thread starter Thread starter cpv
  • Start date Start date
  • Tags Tags
    Data File Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
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