import an excelsheet in matlab with timestamp an plot
Mostrar comentarios más antiguos
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
el 11 de En. de 2021
0 votos
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 comentario
Indira ram
el 12 de En. de 2021
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!