.csv to .mat
4 次查看(过去 30 天)
显示 更早的评论
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.)
0 个评论
回答(1 个)
Walter Roberson
2011-3-24
csvread() can be used to load data from csv files. You can then save() the data to a .mat file.
4 个评论
Walter Roberson
2011-3-25
After you have done the load(), ask to output fieldnames(d) as perhaps the data is not stored in a field named 'data'.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Financial Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!