Matlab: load() is becoming slower and slower

Published: 14/03/2018
Matlab: load() is becoming slower and slower
Source: STACKOVERFLOW.COM

I have 8528 .mat files in a folder, and have to read, operation and write csv in each iteration. code would like to be: for i = 1:8528 record_raw = load(['training2017/A0' num2str(i, '%04u') '.mat']); .... % Some operation on record_raw. Size never changed csvwrite([num2str(i) '.csv'], record_raw) end At early iteration, around 1~1000, it can be very fast (around 0.02s). But it is becoming

Read more
Related news
Comment