import an excelsheet in matlab with timestamp an plot

Hello,
Can someone help me out with this. I have a excelsheet with irradiation data and the time measured in hh:MM
Can anyone help me to plot a barchart with this data, xas should consist of the time measured in hh:mm
I have attached the excelfile
Many thanks in advance

Respuestas (1)

Cris LaPierre
Cris LaPierre el 11 de En. de 2021
There are a number of ways to import spreadsheets. You just need to pick one. I recommend readtable.
If you import the times as durations, you can just plot that as your x. It will appear as time on the x axis.
Once you have your x and y data, creating a bar plot is as simple as bar(x,y). See the documentation for syntax help and examples.

Categorías

Preguntada:

el 11 de En. de 2021

Comentada:

el 12 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by