MATLAB Answers

How can I load only a certain range of a data file (.mat)?

43 views (last 30 days)
Amjad
Amjad on 22 Mar 2013
I have a data file with extintion (.mat) that contains temptature data for each minute for 5 days. So, each 1440 records in the file belong to one day. Note that each record is related to a certain date and time.
My question is: How can I use the data of each day separately, or load only a specific range of the data file rather than loading the whole data file?

Accepted Answer

Richard Alcock
Richard Alcock on 27 Mar 2013
Have a look at the matfile function (Introduced in MATLAB R2011b). This should allow you to load only the part of the data you are interested in.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!