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!