필터 지우기
필터 지우기

Import and saving .csv files as cell array via for loop

조회 수: 3 (최근 30일)
Nils Pelzer
Nils Pelzer 2021년 11월 4일
답변: Nils Pelzer 2021년 11월 5일
I have to import 12 large (800mb) .csv files. They all contain 22 columns which I only need 2 of. They have close to 5 million rows. i used a for loop and the import of the data is no problem. the only problem i have is that iˋm not able to save the cell array as a .mat file cause its too large. I tried doing it via '-v 7.8' but even then it doesnt work. is there a way to solve this? The thing is, if i only run the for loop for 1 file, and save it in the cell array, the size is only about 27mb. but if i add one more file to the cell, its already about 3gb large. what am i doing wrong?
i was trying not to use eval and safe each file by itself but is it possible to do this with this kinda files?
i attached my code.
i know i'm a matlab beginner, so please dont judge me. i would be grateful if someone could help me out.
greetings nils
  댓글 수: 2
Nils Pelzer
Nils Pelzer 2021년 11월 4일
thanks a lot! i will try this tomorrow and let you know if it worked. but i think this could solve my problem.

댓글을 달려면 로그인하십시오.

채택된 답변

Nils Pelzer
Nils Pelzer 2021년 11월 5일
it did solve my problem! thanks a lot!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by