How do I read (hours) data from the .xlsx file?
Show older comments
Hello,
I have the following issue. In a .xlsx file I have in column D hours (format: 00: 00: 00,01: 00: 00, ... 23:00:00). How can I integrate (read) them into the code to use them to plot some graphics I want. Your help is important.
Accepted Answer
More Answers (1)
KSSV
on 10 Feb 2021
0 votes
Read about readtable. In here after reading your specify the format of time. Have a look on duration.
7 Comments
stelios loizidis
on 10 Feb 2021
Walter Roberson
on 10 Feb 2021
We do not know what form column 4 of your xlsx file is in.
Which MATLAB release are you using?
Can you attach a small .xlsx file for testing?
stelios loizidis
on 10 Feb 2021
Walter Roberson
on 10 Feb 2021
Can you attach a small .xlsx file for testing? Excel files have multiple ways of representing times. I suspect that you are looking at a numeric field that a time format has been applied to.
stelios loizidis
on 10 Feb 2021
Walter Roberson
on 10 Feb 2021
If the answer is NO, that you have technical problems or legal restrictions that prevent you from uploading a small sample file, then just say so, and we will provide additional steps to figure out exactly what is happening. But if you were hoping for an answer soon and there is no technical or legal restriction to uploading a small sample file then upload a small sample file
We. Need. To. See. Exactly. What. Is. Stored. In. The. File.
Not what an image of it looks like. Excel permits many different kinds of data to be displayed as the same thing.
stelios loizidis
on 10 Feb 2021
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!