MATLAB Answers

.csv to .mat

79 views (last 30 days)
Andy
Andy on 24 Mar 2011
How do I convert .csv files into .mat files. Specifically to interchange new files into the scrips from Algorithmic Trading with MATLAB - 2010 (the webinar). I want to use other files instead of "Bund1min.mat"
Files and webinar:
(Algorithmic Trading with MATLAB - 2010 by Stuart Kozola 22 Nov 2010 (Updated 06 Dec 2010) Code covered by the BSD License Files from the November 18, 2010 webinar.)

Answers (1)

Walter Roberson
Walter Roberson on 24 Mar 2011
csvread() can be used to load data from csv files. You can then save() the data to a .mat file.
  4 Comments
Walter Roberson
Walter Roberson on 25 Mar 2011
After you have done the load(), ask to output fieldnames(d) as perhaps the data is not stored in a field named 'data'.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!