how to put date and time (exple 02-17-2023 06:05:34) on the x axis of a 3D plot
Ältere Kommentare anzeigen
Hello,
If someone can help please do.
I have date & time in a column in excel. I ploted the data (3D). X axis has date and time numbers. I want instead the actual date and time to be displayed. Example: 02-17-2023 06:05:34 intead of 7.53456 10^5).
Thank you in advance.
Akzeptierte Antwort
Weitere Antworten (1)
Use readtable while importing your data into matlab and plot - see this example:
Data= readtable('DATA_Ts.csv', 'Format','%s%{dd-MM-yy HH:mm}D%f%f%s');
plot(Data.Time_Day, Data.Total, 'r-', 'linewidth', 2)
grid on
2 Kommentare
Sulaymon Eshkabilov
am 21 Feb. 2023
Bearbeitet: Sulaymon Eshkabilov
am 28 Feb. 2023
Welcome Ali.
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


