csv to .mat file
2 views (last 30 days)
Show older comments
Commented: Image Analyst on 3 May 2021
i want to convert data having 3 colums and rows 13000 how can i do that kindly help
John D'Errico on 2 May 2021
Perhaps you need to do the Onramp MATLAB tutorial?
EmirBeg on 2 May 2021
Edited: EmirBeg on 2 May 2021
To get the .csv data try
readtable('filename'); %imports the .csv data
If you need to specify your delimiters you need to change the opts file but usually it's not needed.
doc opts; % all the information you need
To save it in a .mat file try
save('Data'); % saves Workspace in a .mat file named Data
As John said, those are basics you can learn by looking at the docs.
You can also import the data via the Import-Data Button when you press Home, and then create a function of your Import that does it automatically.
Find more on Workspace Variables and MAT-Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!