csv to .mat file
2 次查看(过去 30 天)
显示 更早的评论
i want to convert data having 3 colums and rows 13000 how can i do that kindly help
回答(2 个)
EmirBeg
2021-5-2
编辑:EmirBeg
2021-5-2
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!