saving a csv file as a .mat file

19 views (last 30 days)
Lisa Justin
Lisa Justin on 18 Oct 2012
Commented: nasser tamim on 10 Aug 2020
How can i save a csv file as a .mat file

Accepted Answer

Pedro Villena
Pedro Villena on 18 Oct 2012
if columns have equal number of rows
M=csvread('filename.csv')
save('filename.mat','M')

More Answers (2)

Sachin Ganjare
Sachin Ganjare on 18 Oct 2012
  2 Comments
Lisa Justin
Lisa Justin on 18 Oct 2012
i have a csv file and want to convert it to a matlab file. how can i do this?

Sign in to comment.


Milad
Milad on 11 May 2016
was helpful.

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!