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

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

Lisa Justin

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

Pedro Villena
Answer by Sachin 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?

Sachin

Contact us