Reading a .csv file with datastore in MATLAB R2011b
3 次查看(过去 30 天)
显示 更早的评论
Hi, I was using xlsread to open a csv file with a bunch of values, but there were over 1,048,576 rows in the file and therefore were confined to the restrictions on excel (Excel only allows you to open files with less than 1,048,576 rows). Someone recommended I use datastore to read the file and circumvent excel. I looked up the datastore functions and found TabularTextDatastore which is great for .csv files. To my dismay, I soon realized that TabularTextDatastore is not on Matlab R2011b. When I ask for help in my workspace, this is what I get
" CGPARSEDATASTORE - A CAGE Simulink parse function ptr = datastore(obj,b,blockname,Inputs) Adds a variable if there is no matching DataStoreWrite Otherwise the parser will follow the DataStoreWrite "
I am a noob to matlab and programming so something as simple as this goes over my head. I need examples to really understand it. Does anyone know if there is something else I should use to read a very large csv file? Any more documentation on datastore for the R2011b version of matlab? Any ideas whatsoever will be helpful thank you.
0 个评论
采纳的回答
Titus Edelhofer
2017-7-25
Hi Patrick,
that same person in this case recommends to use textscan, which is available in R2011b and is some sort of a predecessor to the more general concept of a datastore.
Titus
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!