MATLAB Answers

saving a csv file as a .mat file

Asked by Lisa Justin on 18 Oct 2012

How can i save a csv file as a .mat file

  0 Comments

Products

2 Answers

Answer by Pedro Villena
on 18 Oct 2012
 Accepted answer

if columns have equal number of rows

M=csvread('filename.csv')
save('filename.mat','M')

  1 Comment

Lisa Justin on 19 Oct 2012

Thanks Pedro


Answer by PG
on 18 Oct 2012

  2 Comments

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?

PG
on 18 Oct 2012

Sorry bad link (:

http://www.mathworks.com/matlabcentral/answers/3932

Hope it helps!!!


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today