Reading a .csv file with datastore in MATLAB R2011b

4 ビュー (過去 30 日間)
Patrick Lydon
Patrick Lydon 2017 年 7 月 25 日
コメント済み: Patrick Lydon 2017 年 7 月 25 日
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.

採用された回答

Titus Edelhofer
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
  1 件のコメント
Patrick Lydon
Patrick Lydon 2017 年 7 月 25 日
you're the man Titus, thanks for help once again

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by