can anybody help me where i am making mistake here.

its a endless loop even i just want to read 100 rows. i have to terminate it delibertaly . can anyone guide me where am making mistake. thank you
dateformated=0;
while hasdata(ds)
T=read(ds);
dateformated =datestr(719529+T.RequestTime/86400000,'yyyy-mm-dd HH:MM:SS');
end

3 Comments

hi,
what is the value of
ds.ReadSize
What is 'ds'? Can you write the whole function?
What is your evidence that it is an endless loop and not just slow? Have you experimented with reducing your datastore to a single file?

Answers (0)

This question is closed.

Asked:

on 13 Oct 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!