import an excelsheet in matlab with timestamp an plot
Afficher commentaires plus anciens
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
Réponses (1)
Cris LaPierre
le 11 Jan 2021
0 votes
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.
1 commentaire
Indira ram
le 12 Jan 2021
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!