How to import dates so that MatLab sees them?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ekaterina Serikova
am 14 Jun. 2016
Beantwortet: Star Strider
am 14 Jun. 2016
Dear all, I know that that problem was widely discussed, but still none of the previous solutions work for me (( I have a table with column A consisting of the dates(please see Excel attached). When I import the table into MATLAB using:
[dates,big]=xlsread('ExcelName','Big','A2:AIF71'), I get 2 strange arrows with 54 rows...
Could you please help me in importing the table so that MATLAB interprets the date column properly?
Thanks a lot!
0 Kommentare
Akzeptierte Antwort
Star Strider
am 14 Jun. 2016
This works for me:
ExcelName = 'Ekaterina Serikova error.xlsx';
% [dates,big]=xlsread(ExcelName,'Big','A2:AIF71'); % Worksheet 'Big' Does Not Exist In Your File
[dates,big]=xlsread(ExcelName,'A2:AIF71');
DN = datenum(big); % Using ‘datenum’
DN_Check = datevec(DN(1:5))
DT = datetime(big); % Using ‘datetime’
DT_Check = DT(1:5)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!