필터 지우기
필터 지우기

create multiple tables from a CSV in a for loop

조회 수: 7 (최근 30일)
sani
sani 2021년 9월 14일
댓글: sani 2021년 9월 19일
hello everyone,
I have a large CSV file (too large to upload ~ 50 GB) that I stored in a table. the table columns are time,energy.
I'd like to save segments from this table into separate tables. for that I need the new table name to be changed in some way, lets say:
T=1000;
for i = 1:6
segment = find(old_table.time<T);
new_table(i) = old_table(segment,:); %note
T = T+1000;
end
the row with the note is what I'm trying to do but not sure how.
  댓글 수: 5
Walter Roberson
Walter Roberson 2021년 9월 15일
left_side(1:size(right_side,1), 1:size(right_side,2)) = right_side;
sani
sani 2021년 9월 19일
Thank you all, it solved my problam!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by