MATLAB Answers

0

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

Thanks Pedro


Answer by PG
on 18 Oct 2012

  2 Comments

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 MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!