Importing Exporting Data Cheat Sheet
Importing Exporting Data Cheat Sheet
MATLAB® provides functionality to read and write data in many forms. This reference shows common use cases,
but is not a comprehensive list of available functionality.
To see the relevant MATLAB documentation, click the icon below or visit mathworks.com/import-export-data.
Category %C categorical
Type Single File Multiple Files Write Advanced RESTful Web Service
Text readtable tabularTextDatastore writetable detectImportOptions webread Read data
textscan
webwrite Write data
Spreadsheet readtable spreadsheetDatastore writetable detectImportOptions
websave Save data to file
.mat load fileDatastore save Custom datastore
matfile weboptions Specify options such as
Image imread imageDatastore imwrite Custom datastore authentication and timeout
mathworks.com
© 2019 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See mathworks.com/trademarks for a list of additional trademarks.
Other product or brand names may be trademarks or registered trademarks of their respective holders.